Allow swagger outside of dev

This commit is contained in:
2023-01-16 18:15:17 +00:00
parent 545af840c6
commit 2fbc3395a0

View File

@@ -34,7 +34,7 @@ var app = builder.Build();
ImageManager.Configure(app.Configuration, app.Environment); ImageManager.Configure(app.Configuration, app.Environment);
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment()) //if (app.Environment.IsDevelopment())
{ {
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(); app.UseSwaggerUI();