This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Description
To Reproduce
http://localhost:5000/api gives
{"message":"Hello Fastify!"}
Expected behavior
http://localhost:5000/ to work instead
A clear and concise description of what you expected to happen.
Cause:
fastify.register(AutoLoad, {
dir: path.join(__dirname, 'services'),
options: Object.assign({ prefix: '/api' }, opts)
})
Please make root handle '/', so I can see an example of routes with prefix, other routes with some other prefix, and routes with no prefix.
Thanks!