Skip to content

PluginRouteHandler

@azrtydxb/server


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.

FastifyRequest

FastifyReply

unknown | Promise<unknown>