From 428e6c8565312decd25a56809a83f6f7367b2554 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 18 Mar 2024 23:00:26 +0100 Subject: [PATCH] test ci --- src/HeartTrackAPI/Utils/AppBootstrap.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/HeartTrackAPI/Utils/AppBootstrap.cs b/src/HeartTrackAPI/Utils/AppBootstrap.cs index 51e7e79..48c7272 100644 --- a/src/HeartTrackAPI/Utils/AppBootstrap.cs +++ b/src/HeartTrackAPI/Utils/AppBootstrap.cs @@ -191,12 +191,10 @@ public class AppBootstrap(IConfiguration configuration) app.MapSwagger(); app.UseSwaggerUI(options => - { - if(Environment.GetEnvironmentVariable("TYPE") == "STUB") - options.RoutePrefix = "containers/HeartDev-heart_stub"; + { foreach (var description in apiVersionDescriptionProvider.ApiVersionDescriptions) { - options.SwaggerEndpoint($"/swagger/{description.GroupName}/swagger.json", + options.SwaggerEndpoint($"./swagger/{description.GroupName}/swagger.json", description.GroupName.ToUpperInvariant()); } });