@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
18 lines (15 loc) • 716 B
JavaScript
import { Router } from 'express';
import { RecentlyViewedReportsController } from './controller.js';
import routes$1 from './list/routes.js';
/* eslint-disable no-param-reassign */
function routes({ layoutPath, services }) {
const router = Router({ mergeParams: true });
const controller = new RecentlyViewedReportsController(services);
const asyncRemovePath = '/remove-item/:executionId/table-id/:tableId';
const syncRemovePath = '/remove-item/report-id/:reportId/id/:id';
router.post([asyncRemovePath, syncRemovePath], controller.POST);
router.use(`/list`, routes$1({ layoutPath, services }));
return router;
}
export { routes as default, routes };
//# sourceMappingURL=routes.js.map