@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 (14 loc) • 607 B
JavaScript
;
var express = require('express');
var controller = require('./controller.js');
var validation = require('./validation.js');
var validate = require('../../../../validation/validate.js');
/* eslint-disable no-param-reassign */
const routes = ({ layoutPath, services }) => {
const router = express.Router({ mergeParams: true });
const controller$1 = new controller.SelectedProductCollectionController(layoutPath, services);
router.post('/', validate.validate(validation.schema), controller$1.POST);
return router;
};
exports.routes = routes;
//# sourceMappingURL=routes.js.map