decentralised message store

refactor: allow async http handler

serenity b05bec9c 9c944f3f

Changed files
+1 -1
src
lib
types
+1 -1
src/lib/types/routes.ts
···
export type RouteHandler = (
req: FastifyRequest | undefined,
reply: FastifyReply | undefined,
-
) => Response;
+
) => Response | Promise<Response>;
export type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";