You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to recent route change addLeadingSlash fail to detect leading slash
The path @Get('{/:optional}/test.js') is now mapped to /{/:optional}/test.js this fail to match the path /test.js the leading slash is present but optional.
I can make a PR for this issue but this looks dependant of the adapter so it may break fastify. pillarjs/path-to-regexp#344 (reply in thread)
Is there an existing issue for this?
Current behavior
Due to recent route change addLeadingSlash fail to detect leading slash
The path
@Get('{/:optional}/test.js')
is now mapped to/{/:optional}/test.js
this fail to match the path/test.js
the leading slash is present but optional.I can make a PR for this issue but this looks dependant of the adapter so it may break fastify.
pillarjs/path-to-regexp#344 (reply in thread)
Minimum reproduction code
https://codesandbox.io/p/devbox/sharp-gould-8xyrf9?file=%2Fsrc%2Fapp.controller.ts
Steps to reproduce
No response
Expected behavior
/fail2.js ans /test/fail2.js should both work
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
No response
Packages versions
Node.js version
No response
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: