chore: Initiliazed Version als 1.0.0.

- Funktionalität zum Ausführen von Swagger in der Produktion hinzugefügt.
This commit is contained in:
Developer 02
2025-01-17 13:49:40 +01:00
parent 7bab2657d4
commit d6315ce8a5
3 changed files with 7 additions and 2 deletions

View File

@@ -125,7 +125,8 @@ issuerSigningKeyInitiator = new Lazy<SecurityKey>(() =>
});
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
var use_swagger = config.GetValue<bool>("UseSwagger");
if (app.Environment.IsDevelopment() || use_swagger)
{
app.UseSwagger();
app.UseSwaggerUI();