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
I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.19.2
Plugin version
2.3.0
Node.js version
18.5.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
Ventura 13.4
Description
When mixing a Fastify route and an Express route with a wildcard (*), the handler for the Express wildcard route will always be called over the handler for the Fastify route, even if the Fastify route is configured first.
Thanks for trying to help @UNES97, but the updated code you posted is (apart from the added comments) the same as the code I originally posted. Also, I'm already registering the express middleware after defining all fastify routes in the code I posted in my initial post.
Prerequisites
Fastify version
4.19.2
Plugin version
2.3.0
Node.js version
18.5.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
Ventura 13.4
Description
When mixing a Fastify route and an Express route with a wildcard (
*
), the handler for the Express wildcard route will always be called over the handler for the Fastify route, even if the Fastify route is configured first.Steps to Reproduce
Expected Behavior
When sending a GET request to the
/hello-fastify
endpointthe handler function provided when calling
fastify.get('/hello-fastify, handler function() {...})
should be called and the response should be.
The text was updated successfully, but these errors were encountered: