mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-30 01:35:52 +00:00
✨ route middleware test option
This commit is contained in:
@@ -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>;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user