Enable swagger in production

This commit is contained in:
Laura Hausmann 2023-05-19 23:38:38 +02:00
parent 335822966e
commit 843afb926d
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -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");