From 931bdc6aace5e7aa71ffdfb470e208ead78a2a53 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 2 Nov 2018 03:32:24 +0900 Subject: Refactoring, Clean up and bug fixes --- src/server/api/endpoints.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'src/server/api/endpoints.ts') 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'; - - desc?: any; - - params?: any; + stability?: string; //'deprecated' | 'experimental' | 'stable'; + + desc?: { [key: string]: string }; + + params?: { + [key: string]: { + validator: Context; + transform?: any; + default?: any; + desc?: { [key: string]: string }; + ref?: string; + }; + }; res?: any; -- cgit v1.2.3-freya