Skip to content

Commit

Permalink
Merge pull request #1966 from CatsJuice/fix/build-html-static-base-url
Browse files Browse the repository at this point in the history
fix(swagger-module): change buildSwaggerHtml baseUrl from absolute to…
  • Loading branch information
kamilmysliwiec committed Jul 11, 2022
2 parents 408e39d + 4a2a365 commit 7bf6e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swagger-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class SwaggerModule {

const yamlDocument = jsyaml.dump(document);
const jsonDocument = JSON.stringify(document);
const html = buildSwaggerHTML(finalPath, document, options);
const html = buildSwaggerHTML(`.${finalPath}`, document, options);
const swaggerInitJS = buildSwaggerInitJS(document, options);
const httpAdapter = app.getHttpAdapter();

Expand Down

0 comments on commit 7bf6e99

Please sign in to comment.