Move mco related controllers under McoController.cs

This commit is contained in:
CyberL1 2024-02-23 14:40:49 +01:00
parent 9f90a40aee
commit 3554314302
3 changed files with 21 additions and 30 deletions

View File

@ -1,15 +0,0 @@
using Microsoft.AspNetCore.Mvc;
namespace Minecraft_Realms_Emulator.Controllers.Mco
{
[Route("mco/[controller]")]
[ApiController]
public class AvailableController : ControllerBase
{
[HttpGet(Name = "GetAvailable")]
public bool Get()
{
return true;
}
}
}

View File

@ -1,15 +0,0 @@
using Microsoft.AspNetCore.Mvc;
namespace Minecraft_Realms_Emulator.Controllers.Mco.Client
{
[Route("/mco/client/[controller]")]
[ApiController]
public class CompatibleController : ControllerBase
{
[HttpGet(Name = "GetCompatible")]
public string Get()
{
return Compatility.COMPATIBLE.ToString();
}
}
}

View File

@ -0,0 +1,21 @@
using Microsoft.AspNetCore.Mvc;
namespace Minecraft_Realms_Emulator.Controllers.Mco
{
[Route("[controller]")]
[ApiController]
public class McoController : ControllerBase
{
[HttpGet("available")]
public bool GetAvailable()
{
return true;
}
[HttpGet("client/compatible")]
public string GetCompatible()
{
return Compatility.COMPATIBLE.ToString();
}
}
}