Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested paths as path config doesn't work #135

Open
bogeychan opened this issue Jul 22, 2024 · 0 comments · May be fixed by #154
Open

Nested paths as path config doesn't work #135

bogeychan opened this issue Jul 22, 2024 · 0 comments · May be fixed by #154

Comments

@bogeychan
Copy link
Contributor

Versions

Code

import { Elysia } from 'elysia'
import { swagger } from "@elysiajs/swagger";

new Elysia()
	.use(
		swagger({
			path: '/v1/swagger'
		})
	)
	.get('/', () => '')
	.listen(8080)

Problem

The path passed to the frontend is wrong: Instead of v1/swagger/json it has to be /v1/swagger/json for both scalar and swagger-ui

url: `${relativePath}/json`,

url: `${relativePath}/json`

reported on discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant