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.
1 parent 99d4098 commit 20f92b5Copy full SHA for 20f92b5
src/index.ts
@@ -68,7 +68,7 @@ export const swagger = async <Path extends string = '/swagger'>(
68
// External Prefix, if the app is behind a reverse proxy
69
// For example in Traefik, the prefix is set in the header `X-Forwarded-Prefix`
70
const extPrefix = request.headers["x-forwarded-prefix"] ?? "/"
71
- const relativePath = join(extPrefix, prefixedPath)
+ const relativePath = join(extPrefix, prefixedPath, "json")
72
73
const combinedSwaggerOptions = {
74
url: relativePath,
0 commit comments