diff --git a/Minecraft-Realms-Emulator/Controllers/JoinController.cs b/Minecraft-Realms-Emulator/Controllers/JoinController.cs deleted file mode 100644 index a0290e9..0000000 --- a/Minecraft-Realms-Emulator/Controllers/JoinController.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Minecraft_Realms_Emulator.Data; -using Minecraft_Realms_Emulator.Entities; - -namespace Minecraft_Realms_Emulator.Controllers -{ - [Route("worlds/v1/{worldId}/join/pc")] - [ApiController] - public class JoinController : ControllerBase - { - private readonly DataContext _context; - - public JoinController(DataContext context) - { - _context = context; - } - - [HttpGet()] - public ActionResult Join(int worldId) - { - var connection = _context.Connections.FirstOrDefault(x => x.World.Id == worldId); - - return Ok(connection); - } - } -} diff --git a/Minecraft-Realms-Emulator/Controllers/WorldsController.cs b/Minecraft-Realms-Emulator/Controllers/WorldsController.cs index f756992..4692f64 100644 --- a/Minecraft-Realms-Emulator/Controllers/WorldsController.cs +++ b/Minecraft-Realms-Emulator/Controllers/WorldsController.cs @@ -2,7 +2,6 @@ using Microsoft.EntityFrameworkCore; using Minecraft_Realms_Emulator.Data; using Minecraft_Realms_Emulator.Entities; -using System.Collections.Immutable; namespace Minecraft_Realms_Emulator.Controllers { @@ -191,5 +190,13 @@ namespace Minecraft_Realms_Emulator.Controllers return Ok(worldBackups); } + + [HttpGet("v1/{wId}/join/pc")] + public ActionResult Join(int wId) + { + var connection = _context.Connections.FirstOrDefault(x => x.World.Id == wId); + + return Ok(connection); + } } }