diff --git a/src/index.ts b/src/index.ts index c235e4f..ec5d1da 100644 --- a/src/index.ts +++ b/src/index.ts @@ -110,7 +110,7 @@ export const swagger = ) } ).get( - `${path}/json`, + path === '/' ? '/json' : `${path}/json`, () => { const routes = app.routes as InternalRoute[]