summary refs log tree commit diff
path: root/api/src/util/route.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-18 11:56:06 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-18 11:56:06 +0200
commita3484e64e45764775c814739efe73759d5bdeaeb (patch)
tree62d96ac7066a488db432218f8485642bf6477ca7 /api/src/util/route.ts
parent:sparkles: jest automatic tests (diff)
downloadserver-a3484e64e45764775c814739efe73759d5bdeaeb.tar.xz
:sparkles: route middleware test option
Diffstat (limited to '')
-rw-r--r--api/src/util/route.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/src/util/route.ts b/api/src/util/route.ts

index 35ea43ba..9ef92c3a 100644 --- a/api/src/util/route.ts +++ b/api/src/util/route.ts
@@ -33,11 +33,11 @@ export type RouteResponse = { status?: number; body?: `${string}Response`; heade export interface RouteOptions { permission?: PermissionResolvable; body?: `${string}Schema`; // typescript interface name - response?: RouteResponse; - example?: { + test?: { + response?: RouteResponse; body?: any; path?: string; - event?: EventData; + event?: EventData | EventData[]; headers?: Record<string, string>; }; }