Developer 02 353f7698f4 feat(ConfigController): Erstellt, um Webanwendungen über den Server zu konfigurieren.
- GetAnnotationParams Endpunkt hinzufügen, um Annotationsdaten zu senden
2025-03-20 11:50:59 +01:00

24 lines
570 B
C#

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