mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2025-12-06 00:36:10 +00:00
fix: add root directory path check
This commit is contained in:
@@ -110,7 +110,7 @@ export const swagger =
|
||||
)
|
||||
}
|
||||
).get(
|
||||
`${path}/json`,
|
||||
path === '/' ? '/json' : `${path}/json`,
|
||||
() => {
|
||||
const routes = app.routes as InternalRoute[]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user