Compare commits

..

2 Commits

Author SHA1 Message Date
3898463bc4 build: set SWAGGER_SUB_PATH
All checks were successful
Build and Deploy Docker Container / build-and-deploy (push) Successful in 2m1s
.NET Test Pipeline / build-and-test (push) Successful in 2m43s
2024-07-05 02:50:20 +03:00
279ca9647b fix: path to wwwroot 2024-07-05 02:50:02 +03:00
2 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ jobs:
-e SECURITY_HASH_TOKEN=$SECURITY_HASH_TOKEN \
-e SECURITY_SALT_SIZE=$SECURITY_SALT_SIZE \
-e ACTUAL_SUB_PATH=api \
-e SWAGGER_SUB_PATH=swagger \
$DOCKER_IMAGE
"

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)