PluginRouteHandler
Type Alias: PluginRouteHandler
Section titled “Type Alias: PluginRouteHandler”PluginRouteHandler = (
request,reply) =>unknown|Promise<unknown>
Defined in: types.ts:48
Fastify-flavoured route handler exposed to plugins. A plugin handler
receives a Fastify request/reply pair and may return a value (which will
be sent as JSON) or use reply directly.
Parameters
Section titled “Parameters”request
Section titled “request”FastifyRequest
FastifyReply
Returns
Section titled “Returns”unknown | Promise<unknown>