UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

20 lines (17 loc) 716 B
import { Router } from 'express'; import routes$1 from './form/routes.js'; import routes from './submitted/routes.js'; /* eslint-disable no-param-reassign */ function Routes({ layoutPath, services }) { const router = Router({ mergeParams: true }); router.use(`/:reportId/:variantId/submitted`, routes({ layoutPath })); router.use(`/:reportId/:variantId/form`, routes$1({ layoutPath, services })); return router; } const RequestMissingReportRoutes = ({ services, path, layoutPath, }) => { const router = Router({ mergeParams: true }); router.use(path, Routes({ services, layoutPath })); return router; }; export { RequestMissingReportRoutes, Routes }; //# sourceMappingURL=routes.js.map