summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints.ts')
-rw-r--r--src/server/api/endpoints.ts15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/server/api/endpoints.ts b/src/server/api/endpoints.ts
index 6e5ca90c63..e764ac2e95 100644
--- a/src/server/api/endpoints.ts
+++ b/src/server/api/endpoints.ts
@@ -1,12 +1,21 @@
+import { Context } from 'cafy';
import * as path from 'path';
import * as glob from 'glob';
export interface IEndpointMeta {
- stability?: 'deprecated' | 'experimental' | 'stable';
+ stability?: string; //'deprecated' | 'experimental' | 'stable';
- desc?: any;
+ desc?: { [key: string]: string };
- params?: any;
+ params?: {
+ [key: string]: {
+ validator: Context<any>;
+ transform?: any;
+ default?: any;
+ desc?: { [key: string]: string };
+ ref?: string;
+ };
+ };
res?: any;