mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
feat: ACP analytics API route (#7725)
* feat: added API route for retrieving analytics via REST API * feat: sets is now optional, can pass in multiple sets * fix: moved expand and added json button to panel header * fix: matching api params to socket method * fix: update json api button url on graph change * fix: updated default counts based on passed in units
This commit is contained in:
@@ -259,3 +259,5 @@ Analytics.getBlacklistAnalytics = function (callback) {
|
||||
hourly: async.apply(Analytics.getHourlyStatsForSet, 'analytics:blacklist', Date.now(), 24),
|
||||
}, callback);
|
||||
};
|
||||
|
||||
Analytics.async = require('./promisify')(Analytics);
|
||||
|
||||
Reference in New Issue
Block a user