refactor: allow async http handler
serenity 1 month ago b05bec9c 9c944f3f
··· 4 4 export type RouteHandler = ( 5 5 req: FastifyRequest | undefined, 6 6 reply: FastifyReply | undefined, 7 7 - ) => Response; 7 7 + ) => Response | Promise<Response>; 8 8 9 9 export type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; 10 10