feat: news

This commit is contained in:
CyberL1 2024-02-23 14:59:36 +01:00
parent 8a82279ef2
commit 937e5aeb8c
2 changed files with 20 additions and 1 deletions

View File

@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Minecraft_Realms_Emulator.Responses;
namespace Minecraft_Realms_Emulator.Controllers.Mco namespace Minecraft_Realms_Emulator.Controllers.Mco
{ {
@ -17,5 +18,16 @@ namespace Minecraft_Realms_Emulator.Controllers.Mco
{ {
return Compatility.COMPATIBLE.ToString(); return Compatility.COMPATIBLE.ToString();
} }
[HttpGet("v1/news")]
public NewsResponse GetNews()
{
var news = new NewsResponse
{
NewsLink = "https://github.com/CyberL1/Minecraft-Realms-Emulator"
};
return news;
}
} }
} }

View File

@ -0,0 +1,7 @@
namespace Minecraft_Realms_Emulator.Responses
{
public class NewsResponse
{
public string NewsLink { get; set; } = string.Empty;
}
}