route middleware test option

This commit is contained in:
Flam3rboy
2021-09-18 11:56:06 +02:00
parent a7bf295591
commit a3484e64e4
4 changed files with 12 additions and 13 deletions
+3 -3
View File
@@ -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>;
};
}