feat(controller): MetaController zum Abrufen der Parameter des Ursprungs-Servers hinzufügen
This commit is contained in:
parent
89b98af1be
commit
27fb2af845
@ -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);
|
||||
}
|
||||
@ -10,8 +10,4 @@
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Controllers\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user