From 88ffd3f4ec8f94901df1771f62b1d6feaa8687c8 Mon Sep 17 00:00:00 2001 From: Hazmi Alfarizqi Date: Sat, 19 Oct 2024 20:08:39 +0700 Subject: [PATCH] fix: fix path in openapi schema --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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