diff --git a/src/index.ts b/src/index.ts index 8495f75..5b41b05 100644 --- a/src/index.ts +++ b/src/index.ts @@ -137,7 +137,7 @@ export const swagger = async ( schema, hook: route.hooks, method, - path: route.path, + path: join(extPrefix, prefixedPath, route.path), // @ts-ignore models: app.definitions?.type, contentType: route.hooks.type @@ -150,7 +150,7 @@ export const swagger = async ( 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