metatech-university / NodeJS-Fastify

Fastify + NodeJS application server
MIT License
21 stars 17 forks source link

Fix api handler args passing #17

Open JekRock opened 1 year ago

JekRock commented 1 year ago

It seems like it dorsn't make sense to destruct query and body when passing them to an API route handler

JekRock commented 1 year ago

Also, test API route from NodeJS-Application won't work out of the box as it destructs the route handler payload and expects arg property, which is not present (unless you POST an HTTP body with such a property)