0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server/api/canary/stats.js
Fabien 'egg' O'Carroll 19a08cd11d
Replaced stats service with @tryghost/stats-service (#14527)
- Pulls logic out of Ghost core and into the Analytics repository.
- Test coverage has increased for the stats service
- Interface simplified
2022-04-21 14:57:07 +01:00

23 lines
525 B
JavaScript

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