Enable swagger in production
This commit is contained in:
parent
335822966e
commit
843afb926d
|
@ -32,10 +32,8 @@ app.UseRequestLocalization(options => {
|
|||
options.SupportedCultures = new List<CultureInfo> { culture };
|
||||
});
|
||||
|
||||
if (app.Environment.IsDevelopment()) {
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
|
||||
app.UseStatusCodePagesWithReExecute("/Error");
|
||||
|
||||
|
|
Loading…
Reference in a new issue