@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
21 lines (17 loc) • 655 B
JavaScript
;
var express = require('express');
var routes = require('./selected/routes.js');
/* eslint-disable no-param-reassign */
function Routes({ layoutPath, services }) {
const router = express.Router({ mergeParams: true });
router.use(`/selected`, routes.routes({ layoutPath, services }));
return router;
}
const ProductCollectionRoutes = ({ services, path, layoutPath, }) => {
const router = express.Router({ mergeParams: true });
router.use(path, Routes({ services, layoutPath }));
return router;
};
exports.ProductCollectionRoutes = ProductCollectionRoutes;
exports.Routes = Routes;
//# sourceMappingURL=routes.js.map