Skip to content

Commit

Permalink
Merge pull request #118 from marclave/marc/root-directory-path
Browse files Browse the repository at this point in the history
fix: add root directory path check
  • Loading branch information
marclave committed Apr 22, 2024
2 parents da757b7 + 91598c2 commit dd45a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
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 dd45a69

Please sign in to comment.