feat(controller): MetaController zum Abrufen der Parameter des Ursprungs-Servers hinzufügen

This commit is contained in:
Developer 02 2025-01-29 17:50:19 +01:00
parent 89b98af1be
commit 27fb2af845
2 changed files with 13 additions and 4 deletions

View File

@ -0,0 +1,13 @@
using DigitalData.Swagger.Proxy.Configs;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
namespace DigitalData.Swagger.Proxy.Controllers;
[Route("[controller]")]
[ApiController]
public class MetaController(IOptions<OriginServerParams> originServerParamsoptions) : ControllerBase
{
[HttpGet]
public IActionResult GetOriginServerParams() => Ok(originServerParamsoptions.Value);
}

View File

@ -10,8 +10,4 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Controllers\" />
</ItemGroup>
</Project>