From 353f7698f4e20ec69d4b1cf727c865b27764b1a6 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 20 Mar 2025 11:50:59 +0100 Subject: [PATCH] =?UTF-8?q?feat(ConfigController):=20Erstellt,=20um=20Weba?= =?UTF-8?q?nwendungen=20=C3=BCber=20den=20Server=20zu=20konfigurieren.=20?= =?UTF-8?q?=20-=20GetAnnotationParams=20Endpunkt=20hinzuf=C3=BCgen,=20um?= =?UTF-8?q?=20Annotationsdaten=20zu=20senden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/ConfigController.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 EnvelopeGenerator.Web/Controllers/ConfigController.cs diff --git a/EnvelopeGenerator.Web/Controllers/ConfigController.cs b/EnvelopeGenerator.Web/Controllers/ConfigController.cs new file mode 100644 index 00000000..2c3330fd --- /dev/null +++ b/EnvelopeGenerator.Web/Controllers/ConfigController.cs @@ -0,0 +1,23 @@ +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 annotationParamsOptions) + { + _annotParams = annotationParamsOptions.Value; + } + + [HttpGet("Annotations")] + public IActionResult GetAnnotationParams() + { + return Ok(_annotParams); + } +}