Improve doc

This commit is contained in:
syuilo
2019-02-25 04:02:18 +09:00
parent eb8d1211ba
commit 47d4dcfdf5
2 changed files with 63 additions and 33 deletions

View File

@ -1,7 +1,8 @@
import $ from 'cafy';
import define from '../../../define';
import perUserFollowingChart from '../../../../../services/chart/per-user-following';
import perUserFollowingChart, { perUserFollowingLogSchema } from '../../../../../services/chart/per-user-following';
import ID, { transform } from '../../../../../misc/cafy-id';
import { convertLog } from '../../../../../services/chart';
export const meta = {
stability: 'stable',
@ -38,12 +39,7 @@ export const meta = {
}
},
res: {
type: 'array',
items: {
type: 'object',
},
},
res: convertLog(perUserFollowingLogSchema),
};
export default define(meta, async (ps) => {