server/types/api.ts

14 lines
354 B
TypeScript
Raw Normal View History

export interface APIRouteMeta {
2024-04-07 07:30:49 +02:00
allowedMethods: ("GET" | "POST" | "PUT" | "DELETE" | "PATCH")[];
ratelimits: {
max: number;
duration: number;
};
route: string;
auth: {
required: boolean;
requiredOnMethods?: ("GET" | "POST" | "PUT" | "DELETE" | "PATCH")[];
oauthPermissions?: string[];
};
}