From 0109e8e57c264ba3c81bf85eafba8d8b0c63fe66 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Wed, 18 Jul 2018 19:24:31 +0900 Subject: [PATCH] Add white spaces --- src/server/web/docs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/web/docs.ts b/src/server/web/docs.ts index 9ff50fea17..05242e3616 100644 --- a/src/server/web/docs.ts +++ b/src/server/web/docs.ts @@ -113,7 +113,7 @@ const parsePropDefinition = (key: string, prop: any) => { return prop; }; -const sortParams = (params: Array<{name: string}>) => { +const sortParams = (params: Array<{ name: string }>) => { return params; }; @@ -184,7 +184,7 @@ router.get('/*/api/endpoints/*', async ctx => { paramDefs: ep.meta.params ? extractParamDefRef(Object.entries(ep.meta.params).map(([k, v]) => v)) : null, res: ep.meta.res, resProps: ep.meta.res && ep.meta.res.props ? sortParams(Object.entries(ep.meta.res.props).map(([k, v]) => parsePropDefinition(k, v))) : null, - resDefs: null,//extractPropDefRef(Object.entries(ep.res.props).map(([k, v]) => parsePropDefinition(k, v))) + resDefs: null, //extractPropDefRef(Object.entries(ep.res.props).map(([k, v]) => parsePropDefinition(k, v))) src: `https://github.com/syuilo/misskey/tree/master/src/server/api/endpoints/${name}.ts` };