mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-12-22 04:18:21 -05:00
Move mco related controllers under McoController.cs
This commit is contained in:
parent
9f90a40aee
commit
3554314302
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
21
Minecraft-Realms-Emulator/Controllers/McoController.cs
Normal file
21
Minecraft-Realms-Emulator/Controllers/McoController.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user