Skip to content

Commit 192195d

Browse files
committed
fix: fix path in openapi schema
1 parent 44f80b9 commit 192195d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const swagger = async <Path extends string = '/swagger'>(
137137
schema,
138138
hook: route.hooks,
139139
method,
140-
path: route.path,
140+
path: join(extPrefix, prefixedPath, route.path),
141141
// @ts-ignore
142142
models: app.definitions?.type,
143143
contentType: route.hooks.type
@@ -150,7 +150,7 @@ export const swagger = async <Path extends string = '/swagger'>(
150150
schema,
151151
hook: route.hooks,
152152
method: route.method,
153-
path: route.path,
153+
path: join(extPrefix, prefixedPath, route.path),
154154
// @ts-ignore
155155
models: app.definitions?.type,
156156
contentType: route.hooks.type

0 commit comments

Comments
 (0)