fix: add root directory path check

This commit is contained in:
marclave
2024-04-22 07:40:25 -07:00
parent 9454609fca
commit 91598c259b

View File

@@ -110,7 +110,7 @@ export const swagger =
)
}
).get(
`${path}/json`,
path === '/' ? '/json' : `${path}/json`,
() => {
const routes = app.routes as InternalRoute[]