monkeeShark/src/server/api/endpoints/stats.ts
2018-06-16 10:40:53 +09:00

10 lines
198 B
TypeScript

import Meta from '../../../models/meta';
/**
* Get the misskey's statistics
*/
module.exports = () => new Promise(async (res, rej) => {
const meta = await Meta.findOne();
res(meta.stats);
});