first commit

This commit is contained in:
creations 2025-04-05 01:28:29 -04:00
commit b11c87a506
Signed by: creations
GPG key ID: 8F553AA4320FC711
26 changed files with 1782 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;
};