Skip to content

Commit

Permalink
Update Fastify Example
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan authored Sep 22, 2022
1 parent ed098ba commit f071e08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ app.route({
url: '/mypath',
method: ['GET', 'POST', 'OPTIONS'],
handler: async (req, reply) => {
const response = await myServerAdapter.handleNodeRequest(req)
const response = await myServerAdapter.handleNodeRequest(req, {
req,
reply,
})
response.headers.forEach((value, key) => {
reply.header(key, value)
})
Expand Down

0 comments on commit f071e08

Please sign in to comment.