From 5dfb8d03f7832460aab761036aca72f238742366 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 19 Mar 2024 08:20:16 +0100 Subject: [PATCH] ok --- src/HeartTrackAPI/Utils/AppBootstrap.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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()); - } - }); - }