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
http://localhost:5000/api gives
{"message":"Hello Fastify!"}
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!
The text was updated successfully, but these errors were encountered:
would you be able to send a PR?
Sorry, something went wrong.
Yes. What would you recommend as best practice?
change prefix to / here https://github.com/fastify/fastify-example-todo/blob/master/app.js#L32
/
move auth.js and todo.js in /services/api/ (seems strange to require an extra folder, most services are apis except just something in /) ?
/services/api/
I would add that folder, yes. I would also recommend all the modules to be updated as this is likely out of date
No branches or pull requests
To Reproduce
http://localhost:5000/api gives
Expected behavior
http://localhost:5000/ to work instead
A clear and concise description of what you expected to happen.
Cause:
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!
The text was updated successfully, but these errors were encountered: