mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-12-25 22:08:22 -05:00
chore: remove unused code, fix a typo
This commit is contained in:
parent
2245a95d55
commit
ef35843140
@ -1,9 +0,0 @@
|
|||||||
namespace MyMcRealms
|
|
||||||
{
|
|
||||||
public enum Compatility
|
|
||||||
{
|
|
||||||
COMPATIBLE,
|
|
||||||
OTHER,
|
|
||||||
OUTDATED
|
|
||||||
}
|
|
||||||
}
|
|
@ -45,7 +45,7 @@ namespace MyMcRealms.Controllers
|
|||||||
ErrorResponse errorResponse = new()
|
ErrorResponse errorResponse = new()
|
||||||
{
|
{
|
||||||
ErrorCode = 400,
|
ErrorCode = 400,
|
||||||
ErrorMsg = "Player already whitelisteed"
|
ErrorMsg = "Player already whitelisted"
|
||||||
};
|
};
|
||||||
|
|
||||||
return BadRequest(errorResponse);
|
return BadRequest(errorResponse);
|
||||||
|
@ -18,7 +18,7 @@ namespace MyMcRealms.Controllers
|
|||||||
[HttpGet("client/compatible")]
|
[HttpGet("client/compatible")]
|
||||||
public string GetCompatible()
|
public string GetCompatible()
|
||||||
{
|
{
|
||||||
return Compatility.COMPATIBLE.ToString();
|
return "COMPATIBLE";
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("v1/news")]
|
[HttpGet("v1/news")]
|
||||||
@ -26,7 +26,7 @@ namespace MyMcRealms.Controllers
|
|||||||
{
|
{
|
||||||
var news = new NewsResponse
|
var news = new NewsResponse
|
||||||
{
|
{
|
||||||
NewsLink = "https://github.com/CyberL1/Minecraft-Realms-Emulator",
|
NewsLink = "https://github.com/CyberL1/MyMcRealms",
|
||||||
};
|
};
|
||||||
|
|
||||||
return news;
|
return news;
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
using System.Text.Json;
|
namespace MyMcRealms.Responses
|
||||||
|
|
||||||
namespace MyMcRealms.Responses
|
|
||||||
{
|
{
|
||||||
public class WorldResponse
|
public class WorldResponse
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
// public Subscription? Subscription { get; set; }
|
|
||||||
public string? Owner { get; set; }
|
public string? Owner { get; set; }
|
||||||
public string? OwnerUUID { get; set; }
|
public string? OwnerUUID { get; set; }
|
||||||
public string? Name { get; set; }
|
public string? Name { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user