Skip to content

Commit

Permalink
fix: fix path in openapi schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 committed Nov 29, 2024
1 parent 0a48167 commit 88ffd3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const swagger = async <Path extends string = '/swagger'>(
schema,
hook: route.hooks,
method,
path: route.path,
path: join(extPrefix, prefixedPath, route.path),
// @ts-ignore
models: app.definitions?.type,
contentType: route.hooks.type
Expand All @@ -150,7 +150,7 @@ export const swagger = async <Path extends string = '/swagger'>(
schema,
hook: route.hooks,
method: route.method,
path: route.path,
path: join(extPrefix, prefixedPath, route.path),
// @ts-ignore
models: app.definitions?.type,
contentType: route.hooks.type
Expand Down

0 comments on commit 88ffd3f

Please sign in to comment.