1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-26 12:38:16 +09:00
MisskeyIO/src/server/api/endpoints/stats.ts
2018-07-08 03:51:09 +09:00

11 lines
208 B
TypeScript

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