We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.1.26
No response
import { swagger } from '@elysiajs/swagger'; import { Elysia } from 'elysia'; const publicApi2 = new Elysia({ name: 'public', prefix: '/', tags: ['Public API'], }).get('/', () => 200); const publicApi = new Elysia({ name: 'public', prefix: '/', tags: ['Public API'], }) .get('/', () => 200) .use(publicApi2); const app = new Elysia() .use(swagger({ path: '/docs', provider: 'swagger-ui' })) .use(publicApi); console.log(app.routes.map(({hooks, ...route}) => (route)));
[ { method: 'GET', path: '/', composed: [Function (anonymous)], handler: [Function (anonymous)] } ]
[ { method: 'GET', path: '//', composed: [Function (anonymous)], handler: [Function (anonymous)] }, { method: 'GET', path: '///', composed: [Function (anonymous)], handler: [Function (anonymous)] } ]
The issue seems to be related to how the prefix and nested routes are being handled.
The extra / in the path is likely causing the routes to be incorrectly registered.
node_modules
bun.lockb
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Elysia is running?
1.1.26
What platform is your computer?
No response
What steps can reproduce the bug?
What is the expected behavior?
What do you see instead?
Additional information
The issue seems to be related to how the prefix and nested routes are being handled.
The extra / in the path is likely causing the routes to be incorrectly registered.
Have you try removing the
node_modules
andbun.lockb
and try again yet?No response
The text was updated successfully, but these errors were encountered: