diff --git a/Learn.VideoAnalysis.API/Program.cs b/Learn.VideoAnalysis.API/Program.cs index 3aba7f6..d692850 100644 --- a/Learn.VideoAnalysis.API/Program.cs +++ b/Learn.VideoAnalysis.API/Program.cs @@ -48,12 +48,11 @@ namespace Learn.VideoAnalysis.API var app = builder.Build(); AppCommon.Services = app.Services; + app.UseMiddleware("Swagger"); // Configure the HTTP request pipeline. - if (app.Environment.IsDevelopment()) - { - app.UseSwagger(); - app.UseSwaggerUI(); - } + + app.UseSwagger(); + app.UseSwaggerUI(); app.UseHttpsRedirection();