using Knot.Shared.Kernel.Configuration; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Authorization; namespace Host.Controllers; [Authorize] [ApiController] [Route("api/[controller]")] public class ConfigController : ControllerBase { private readonly ISettingsService _settings; public ConfigController(ISettingsService settings) { _settings = settings; } [HttpGet] public IActionResult GetPublicConfig() { var conf = _settings.Current; return Ok(new { conf.EnableCalls, conf.EnableKlipy, conf.MaxFileSizeMb, conf.MaxGroupMembers, conf.EnableConfederation }); } }