@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) • 578 B
JavaScript
import { Router } from 'express';
import { routes } from './selected/routes.js';
/* eslint-disable no-param-reassign */
function Routes({ layoutPath, services }) {
const router = Router({ mergeParams: true });
router.use(`/selected`, routes({ layoutPath, services }));
return router;
}
const ProductCollectionRoutes = ({ services, path, layoutPath, }) => {
const router = Router({ mergeParams: true });
router.use(path, Routes({ services, layoutPath }));
return router;
};
export { ProductCollectionRoutes, Routes };
//# sourceMappingURL=routes.js.map