fix: path to wwwroot

This commit is contained in:
Polianin Nikita 2024-07-05 02:50:02 +03:00
parent ab660f69c8
commit 279ca9647b

View File

@ -61,7 +61,7 @@ public static class SwaggerConfiguration
app.UseSwagger();
app.UseSwaggerUI(options =>
{
options.InjectStylesheet("/css/swagger/SwaggerDark.css");
options.InjectStylesheet($"{UrlHelper.GetSubPath}css/swagger/SwaggerDark.css");
var provider = services.GetService<IApiVersionDescriptionProvider>();
foreach (var description in provider!.ApiVersionDescriptions)