mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
16 lines
519 B
JavaScript
16 lines
519 B
JavaScript
/*
|
|
* Copyright (c) 2025 by Christian Kellner.
|
|
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
|
|
*/
|
|
|
|
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 };
|