We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d48235 commit a4229ebCopy full SHA for a4229eb
src/index.ts
@@ -85,7 +85,7 @@ export const swagger = async <Path extends string = '/swagger'>(
85
const scalarConfiguration: ReferenceConfiguration = {
86
spec: {
87
...scalarConfig.spec,
88
- url: `${request.url}/json`
+ url: `${new URL(request.url).pathname.replace(/\/$/, "")}/json`
89
},
90
...scalarConfig,
91
// so we can showcase the elysia theme
0 commit comments