Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
fix openapi pathbase
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jmattson committed Jun 15, 2021
1 parent 9dbcd4c commit 50f29e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TopoMojo.Web/Extensions/SwaggerStartupExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ BrandingOptions brandingOptions
app.UseSwaggerUI(cfg =>
{
cfg.RoutePrefix = "api";
cfg.SwaggerEndpoint("/api/v1/openapi.json", $"{brandingOptions.ApplicationName} (v1)");
cfg.SwaggerEndpoint(brandingOptions.PathBase + "/api/v1/openapi.json", $"{brandingOptions.ApplicationName} (v1)");
cfg.OAuthClientId(authOptions.SwaggerClient?.ClientId);
cfg.OAuthAppName(authOptions.SwaggerClient?.ClientName ?? authOptions.SwaggerClient?.ClientId);
});
Expand Down

0 comments on commit 50f29e6

Please sign in to comment.