summary refs log tree commit diff
path: root/src/api/util/handlers
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-10-16 09:39:21 +0200
committerRory& <root@rory.gay>2025-10-16 09:39:21 +0200
commit157cd64a665873d3a36905c0b9ea1705f8d5891d (patch)
tree36c4b07f25b7e57f6905479cff0490f421847e25 /src/api/util/handlers
parentImplement applications/@me (diff)
downloadserver-ts-dev/openapi-improvements.tar.xz
Diffstat (limited to 'src/api/util/handlers')
-rw-r--r--src/api/util/handlers/route.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts

index 24c3416d1..0d0a616af 100644 --- a/src/api/util/handlers/route.ts +++ b/src/api/util/handlers/route.ts
@@ -58,7 +58,7 @@ export interface RouteOptions { right?: RightResolvable; requestBody?: `${string}Schema`; // typescript interface name responses?: { - [status: number]: { + [status: number | string]: { // body?: `${string}Response`; body?: string; }; @@ -75,6 +75,7 @@ export interface RouteOptions { }; }; deprecated?: boolean; + ratelimitBucket?: string; // test?: { // response?: RouteResponse; // body?: unknown;