mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-11-14 10:28:21 -05:00
25 lines
645 B
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|