Improve docs
This commit is contained in:
		| @@ -1,9 +1,16 @@ | ||||
| import User, { pack, ILocalUser } from '../../../models/user'; | ||||
| import { IApp } from '../../../models/app'; | ||||
|  | ||||
| /** | ||||
|  * Show myself | ||||
|  */ | ||||
| export const meta = { | ||||
| 	desc: { | ||||
| 		ja: '自分のアカウント情報を取得します。' | ||||
| 	}, | ||||
|  | ||||
| 	requireCredential: true, | ||||
|  | ||||
| 	params: {} | ||||
| }; | ||||
|  | ||||
| export default (params: any, user: ILocalUser, app: IApp) => new Promise(async (res, rej) => { | ||||
| 	const isSecure = user != null && app == null; | ||||
|  | ||||
|   | ||||
| @@ -173,12 +173,11 @@ router.get('/*/api/endpoints/*', async ctx => { | ||||
|  | ||||
| 	const vars = { | ||||
| 		title: name, | ||||
| 		endpoint: name, | ||||
| 		endpoint: ep.meta, | ||||
| 		url: { | ||||
| 			host: config.api_url, | ||||
| 			path: name | ||||
| 		}, | ||||
| 		desc: ep.meta.desc, | ||||
| 		// @ts-ignore | ||||
| 		params: ep.meta.params ? sortParams(Object.entries(ep.meta.params).map(([k, v]) => parseParamDefinition(k, v))) : null, | ||||
| 		paramDefs: ep.meta.params ? extractParamDefRef(Object.entries(ep.meta.params).map(([k, v]) => v)) : null, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo