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
Based on the official documentation, in case of async / await usage there is no need to use the reply.send() syntax.
Previous syntax fastify.get('/', (request, reply) => { reply.send({ hello: 'world' }) }) New syntax: fastify.get('/', async (request, reply) => { return { hello: 'world' } })
fastify.get('/', (request, reply) => { reply.send({ hello: 'world' }) })
fastify.get('/', async (request, reply) => { return { hello: 'world' } })
The text was updated successfully, but these errors were encountered:
Thank you for your suggestions, do you want to implement these changes?
Sorry, something went wrong.
Yes, I can implement these changes.
@rpvsilva Opened a PR: #18
No branches or pull requests
Based on the official documentation, in case of async / await usage there is no need to use the reply.send() syntax.
Previous syntax
fastify.get('/', (request, reply) => { reply.send({ hello: 'world' }) })
New syntax:
fastify.get('/', async (request, reply) => { return { hello: 'world' } })
The text was updated successfully, but these errors were encountered: