diff --git a/lib/swagger-module.ts b/lib/swagger-module.ts index 9d82d0f40..85d695f74 100644 --- a/lib/swagger-module.ts +++ b/lib/swagger-module.ts @@ -117,7 +117,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();