feat: Option zur Verwendung von Swagger und Scalar in der Produktion hinzufügen.

- Login-Endpunkt beheben
This commit is contained in:
Developer 02
2025-04-09 09:53:13 +02:00
parent 9a4931781a
commit 3f33be452c
4 changed files with 16 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ var app = builder.Build();
app.MapOpenApi();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
if (app.Environment.IsDevelopment() || (app.IsDevOrDiP() && config.GetValue<bool>("UseSwagger")))
{
app.UseSwagger();
app.UseSwaggerUI();