add guild sql, move things around for req body
All checks were successful
Code quality checks / biome (push) Successful in 9s
All checks were successful
Code quality checks / biome (push) Successful in 9s
This commit is contained in:
parent
33a602cdd0
commit
ca0410f7fb
30 changed files with 332 additions and 183 deletions
|
@ -5,13 +5,19 @@ type RouteDef = {
|
|||
method: string | string[];
|
||||
accepts: string | null | string[];
|
||||
returns: string;
|
||||
needsBody?: "multipart" | "json";
|
||||
needsBody?:
|
||||
| "multipart"
|
||||
| "json"
|
||||
| "urlencoded"
|
||||
| "text"
|
||||
| "raw"
|
||||
| "buffer"
|
||||
| "blob";
|
||||
};
|
||||
|
||||
type RouteModule = {
|
||||
handler: (
|
||||
request: Request | ExtendedRequest,
|
||||
requestBody: unknown,
|
||||
server: Server,
|
||||
) => Promise<Response> | Response;
|
||||
routeDef: RouteDef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue