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()); } });