using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Moonlight.Shared.Http.Requests; using Moonlight.Shared.Http.Responses; using MoonlightServers.Api.Infrastructure.Database; using MoonlightServers.Api.Infrastructure.Database.Entities; using MoonlightServers.Api.Infrastructure.Database.Json; using MoonlightServers.Shared; using MoonlightServers.Shared.Admin.Templates; namespace MoonlightServers.Api.Admin.Templates; [ApiController] [Route("api/admin/servers/templates")] public class CrudController : Controller { private readonly DatabaseRepository