chore: Initiliazed Version als 1.0.0.
- Funktionalität zum Ausführen von Swagger in der Produktion hinzugefügt.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user