mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
13 lines
275 B
TypeScript
13 lines
275 B
TypeScript
|
|
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")[];
|
||
|
|
};
|
||
|
|
}
|