enable swagger for prod
This commit is contained in:
@@ -57,11 +57,8 @@ using (var scope = app.Services.CreateScope())
|
||||
app.UseExceptionHandler();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
|
||||
app.UseCors(corsPolicyName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user