diff --git a/src/HeartTrackAPI/Utils/AppBootstrap.cs b/src/HeartTrackAPI/Utils/AppBootstrap.cs index 05cf606..0e57f42 100644 --- a/src/HeartTrackAPI/Utils/AppBootstrap.cs +++ b/src/HeartTrackAPI/Utils/AppBootstrap.cs @@ -188,15 +188,13 @@ public class AppBootstrap(IConfiguration configuration) { var apiVersionDescriptionProvider = app.Services.GetRequiredService(); app.UseSwagger(); - app.MapSwagger(); app.UseSwaggerUI(options => { foreach (var description in apiVersionDescriptionProvider.ApiVersionDescriptions) { - options.SwaggerEndpoint($"/containers/HeartDev-heart_stub/swagger/{description.GroupName}/swagger.json", + options.SwaggerEndpoint($"/swagger/{description.GroupName}/swagger.json", description.GroupName.ToUpperInvariant()); - options.RoutePrefix = string.Empty; } });