using EnvelopeGenerator.Web.Models.Annotation; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; namespace EnvelopeGenerator.Web.Controllers; [Route("api/[controller]")] [ApiController] [Authorize] public class ConfigController : ControllerBase { private readonly AnnotationParams _annotParams; public ConfigController(IOptionsMonitor annotationParamsOptions) { _annotParams = annotationParamsOptions.CurrentValue; } [HttpGet("Annotations")] public IActionResult GetAnnotationParams() { return Ok(_annotParams.AnnotationJSObject); } }