mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
Adding new Admin UI. Updating Fredy to V3.0.0 as it has been a large rewrite. Thanks for all contributions and help on the way!
13 lines
383 B
JavaScript
13 lines
383 B
JavaScript
const service = require('restana')();
|
|
const analyticsRouter = service.newRouter();
|
|
const listingStorage = require('../../services/storage/listingsStorage');
|
|
|
|
analyticsRouter.get('/:jobId', async (req, res) => {
|
|
const { jobId } = req.params;
|
|
|
|
res.body = listingStorage.getListingProviderDataForAnalytics(jobId) || {};
|
|
res.send();
|
|
});
|
|
|
|
exports.analyticsRouter = analyticsRouter;
|