diff --git a/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs b/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs index 6bac87b..ba97739 100644 --- a/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs +++ b/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs @@ -18,11 +18,18 @@ namespace Minecraft_Realms_Emulator.Controllers.Admin } [HttpGet] - public ActionResult> GetConfiguration() + public ActionResult> GetWorlds() { var worlds = _context.Worlds.ToList(); return Ok(worlds); } + + [HttpGet("{wId}")] + public ActionResult GetWorld(int wId) { + var world = _context.Worlds.ToList().Find(w => w.Id == wId); + + return Ok(world); + } } } \ No newline at end of file