diff --git a/src/HeartTrackAPI/Utils/AppBootstrap.cs b/src/HeartTrackAPI/Utils/AppBootstrap.cs index 5c02ed1..e45e18f 100644 --- a/src/HeartTrackAPI/Utils/AppBootstrap.cs +++ b/src/HeartTrackAPI/Utils/AppBootstrap.cs @@ -183,7 +183,6 @@ public class AppBootstrap(IConfiguration configuration) // Configure the HTTP request pipeline. if (true) { - var apiVersionDescriptionProvider = app.Services.GetRequiredService(); app.UseSwagger(options => { options.PreSerializeFilters.Add((swagger, httpReq) => @@ -209,17 +208,8 @@ public class AppBootstrap(IConfiguration configuration) } }); }); - // app.UseSwaggerUI(); + app.UseSwaggerUI(); app.MapSwagger(); - app.UseSwaggerUI(options => - { - foreach (var description in apiVersionDescriptionProvider.ApiVersionDescriptions) - { - options.SwaggerEndpoint($"/swagger/{description.GroupName}/swagger.json", - description.GroupName.ToUpperInvariant()); - } - }); - }