From 91598c259bd2b77c49d6c75ba685a88847500116 Mon Sep 17 00:00:00 2001 From: marclave Date: Mon, 22 Apr 2024 07:40:25 -0700 Subject: [PATCH] fix: add root directory path check --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[]