mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-08-05 16:49:17 +00:00
19 lines
340 B
TypeScript
19 lines
340 B
TypeScript
import Meta from '../../../models/meta';
|
|
import define from '../define';
|
|
|
|
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 : {});
|
|
}));
|