server/types/api.ts

14 lines
306 B
TypeScript
Raw Normal View History

export interface APIRouteMeta {
allowedMethods: ("GET" | "POST" | "PUT" | "DELETE" | "PATCH")[];
ratelimits: {
max: number;
duration: number;
};
route: string;
auth: {
required: boolean;
requiredOnMethods?: ("GET" | "POST" | "PUT" | "DELETE" | "PATCH")[];
2023-11-22 04:00:14 +01:00
oauthPermissions?: string[];
};
}