Ghost/core/server/web
Simon Backx 132726fe20
Added MRR stats service and endpoint (#14427)
refs https://github.com/TryGhost/Team/issues/1470

Instead of counting the MRR by resolving all the deltas from the past until now, we should start with the current calculated MRR and resolve it until the first event. That would give a more accurate recent MRR (in exchange for a less accurate MRR for older data) and allows us to limit the amount of returned days in the future.

- Includes MRR stats service that can fetch the current MRR per currency
- The service can return a history of the MRR for every day and currency
- New admin API endpoint /stats/mrr that returns the MRR history
- Includes tests for these new service and endpoint
2022-04-08 09:18:04 +02:00
..
admin Fixed theme error handler (#14363) 2022-03-22 15:32:55 +00:00
api Added MRR stats service and endpoint (#14427) 2022-04-08 09:18:04 +02:00
members Removed public cache-control header for member site endpoint 2022-03-03 15:25:49 +00:00
oauth Merged our two maintenance middleware into one 2021-11-24 11:27:18 +00:00
parent Centralized base API path value across server codebase 2022-03-09 17:15:51 +08:00
shared Centralized base API path value across server codebase 2022-03-09 17:15:51 +08:00
index.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
well-known.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00