diff --git a/Server/Program.cs b/Server/Program.cs index cdc828e..32cfd0c 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -70,17 +70,7 @@ if (app.Environment.IsDevelopment()) app.UseHttpsRedirection(); } -else if (app.Environment.IsProduction()) -{ - app.UseSwagger(); - app.UseSwaggerUI(c => - { - c.SwaggerEndpoint("/swagger/v1/swagger.json", "Optifit API v1"); - c.RoutePrefix = string.Empty; // Serve Swagger UI at the app's root - }); -} -app.UseHttpsRedirection(); app.UseAuthorization(); app.MapControllers(); app.Run(); \ No newline at end of file