initial commit

This commit is contained in:
creations 2025-05-01 13:53:38 -04:00
commit 44077f3ccd
Signed by: creations
GPG key ID: 8F553AA4320FC711
14 changed files with 461 additions and 0 deletions

15
types/routes.d.ts vendored Normal file
View file

@ -0,0 +1,15 @@
type RouteDef = {
method: string | string[];
accepts: string | null | string[];
returns: string;
needsBody?: "multipart" | "json";
};
type RouteModule = {
handler: (
request: Request | ExtendedRequest,
requestBody: unknown,
server: BunServer,
) => Promise<Response> | Response;
routeDef: RouteDef;
};