1
0
mirror of https://github.com/hotomoe/hotomoe synced 2025-01-01 23:42:52 +09:00
hotomoe/src/server/api/endpoints/stats.ts
2018-06-16 10:40:53 +09:00

11 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);
});