0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/api/canary/stats.js

33 lines
751 B
JavaScript
Raw Normal View History

const statsService = require('../../services/stats');
module.exports = {
docName: 'stats',
memberCountHistory: {
permissions: {
docName: 'members',
method: 'browse'
},
async query() {
return await statsService.getMemberCountHistory();
}
},
mrr: {
permissions: {
docName: 'members',
method: 'browse'
},
async query() {
return await statsService.getMRRHistory();
}
},
subscriptions: {
permissions: {
docName: 'members',
method: 'browse'
},
async query() {
return await statsService.getSubscriptionCountHistory();
}
}
};