1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2025-04-04 06:58:37 -04:00
MyMcRealms/MyMcRealms/Controllers/ConfigurationController.cs
2024-04-20 09:33:06 +02:00

25 lines
645 B
C#

using Microsoft.AspNetCore.Mvc;
using Minecraft_Realms_Emulator.Data;
using Minecraft_Realms_Emulator.Entities;
namespace Minecraft_Realms_Emulator.Controllers
{
[Route("[controller]")]
[ApiController]
public class ConfigurationController : ControllerBase
{
private readonly DataContext _context;
public ConfigurationController(DataContext context)
{
_context = context;
}
[HttpGet]
public ActionResult<Configuration> GetConfigurationAsync()
{
var configuration = _context.Configuration;
return Ok(configuration);
}
}
}