Skip to content

Commit

Permalink
fix: add root directory path check
Browse files Browse the repository at this point in the history
  • Loading branch information
marclave committed Apr 22, 2024
1 parent 9454609 commit 91598c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const swagger =
)
}
).get(
`${path}/json`,
path === '/' ? '/json' : `${path}/json`,
() => {
const routes = app.routes as InternalRoute[]

Expand Down

0 comments on commit 91598c2

Please sign in to comment.