@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
24 lines (19 loc) • 848 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var express = require('express');
var controller = require('./controller.js');
var routes$1 = require('./submitted/routes.js');
var validation = require('./validation.js');
var validate = require('../../../../../validation/validate.js');
/* eslint-disable no-param-reassign */
function routes({ layoutPath, services }) {
const router = express.Router({ mergeParams: true });
const controller$1 = new controller.RequestDownloadController(layoutPath, services);
router.get('/', controller$1.GET);
router.post('/', validate.validate(validation.schema), controller$1.POST);
router.use('/submitted', routes$1.default({ layoutPath, services }));
return router;
}
exports.default = routes;
exports.routes = routes;
//# sourceMappingURL=routes.js.map