This commit is contained in:
syuilo
2018-11-02 13:47:44 +09:00
parent ddc3c5ba68
commit 174f8022eb
131 changed files with 512 additions and 917 deletions

View File

@@ -1,10 +1,19 @@
import Meta from '../../../models/meta';
import define from '../define';
/**
* Get the misskey's statistics
*/
export default () => new Promise(async (res, rej) => {
export const meta = {
requireCredential: false,
desc: {
'en-US': 'Get the instance\'s statistics'
},
params: {
}
};
export default define(meta, () => new Promise(async (res, rej) => {
const meta = await Meta.findOne();
res(meta ? meta.stats : {});
});
}));