We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c773c53 + 94726c3 commit ddb7174Copy full SHA for ddb7174
src/index.ts
@@ -46,11 +46,11 @@ export const swagger =
46
...documentation.info
47
}
48
49
- const pathWithPrefix = `${app.config.prefix}${path}`
+ const relativePath = path.startsWith('/') ? path.slice(1) : path
50
51
app.get(path, () => {
52
const combinedSwaggerOptions = {
53
- url: `${pathWithPrefix}/json`,
+ url: `${relativePath}/json`,
54
dom_id: '#swagger-ui',
55
...swaggerOptions
56
0 commit comments