summary refs log tree commit diff
path: root/src/api/util/handlers
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-03-24 18:57:44 -0400
committerPuyodead1 <puyodead@proton.me>2023-04-13 15:24:37 -0400
commit0dc5b19bd87875f146362e042e976958a047192e (patch)
treeb76f14cedb659f4bbeb2aeb0fed1c7d9582907cf /src/api/util/handlers
parentdefault responses (diff)
downloadserver-0dc5b19bd87875f146362e042e976958a047192e.tar.xz
gifs and query params
Diffstat (limited to 'src/api/util/handlers')
-rw-r--r--src/api/util/handlers/route.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts
index 331ac0c2..2416b73f 100644
--- a/src/api/util/handlers/route.ts
+++ b/src/api/util/handlers/route.ts
@@ -62,6 +62,14 @@ export interface RouteOptions {
 	event?: EVENT | EVENT[];
 	summary?: string;
 	description?: string;
+	query?: {
+		[key: string]: {
+			type: string;
+			required?: boolean;
+			description?: string;
+			values?: string[];
+		};
+	};
 	// test?: {
 	// 	response?: RouteResponse;
 	// 	body?: unknown;