[X] I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.26.2
Plugin version
5.8.1
Node.js version
21.6.2
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
14.4.1
Description
On the latest version of fastify/fastify-autoload (v5.8.1), all of my routes with auto hooks are broken and are just 404ing.
Downgrading to v5.8.0 or below, all routes continue to work as before.
In the MREs, start the server and visit http://127.0.0.1:3000/feeds/1234 and the route will 404. Downgrate to autoload 5.8.0 and visit it again and the route works.
Prerequisites
Fastify version
4.26.2
Plugin version
5.8.1
Node.js version
21.6.2
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
14.4.1
Description
On the latest version of
fastify/fastify-autoload
(v5.8.1), all of my routes with auto hooks are broken and are just 404ing.Downgrading to
v5.8.0
or below, all routes continue to work as before.In the MREs, start the server and visit
http://127.0.0.1:3000/feeds/1234
and the route will 404. Downgrate to autoload5.8.0
and visit it again and the route works.Link to code that reproduces the bug
https://github.com/ballpit/broken-auto-hooks
Expected Behavior
Routes with auto hooks should not 404.