using AutoMapper; using LANCommander.Server.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace LANCommander.Server.Controllers.Api { [Authorize(AuthenticationSchemes = "Bearer")] [Route("api/[controller]")] [ApiController] public class SettingsController : ControllerBase { private readonly IMapper Mapper; public SettingsController(IMapper mapper) { Mapper = mapper; } [HttpGet] public async Task Get() { return Mapper.Map(SettingService.GetSettings()); } } }