mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
11 lines
388 B
JavaScript
11 lines
388 B
JavaScript
import restana from 'restana';
|
|
import * as listingStorage from '../../services/storage/listingsStorage.js';
|
|
const service = restana();
|
|
const analyticsRouter = service.newRouter();
|
|
analyticsRouter.get('/:jobId', async (req, res) => {
|
|
const { jobId } = req.params;
|
|
res.body = listingStorage.getListingProviderDataForAnalytics(jobId) || {};
|
|
res.send();
|
|
});
|
|
export { analyticsRouter };
|