Skip to content

Commit 20f92b5

Browse files
committed
fix: add /json in documentation
1 parent 99d4098 commit 20f92b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const swagger = async <Path extends string = '/swagger'>(
6868
// External Prefix, if the app is behind a reverse proxy
6969
// For example in Traefik, the prefix is set in the header `X-Forwarded-Prefix`
7070
const extPrefix = request.headers["x-forwarded-prefix"] ?? "/"
71-
const relativePath = join(extPrefix, prefixedPath)
71+
const relativePath = join(extPrefix, prefixedPath, "json")
7272

7373
const combinedSwaggerOptions = {
7474
url: relativePath,

0 commit comments

Comments
 (0)