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.

22 lines (17 loc) 648 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var express = require('express'); var controller = require('./controller.js'); /* eslint-disable no-param-reassign */ function routes({ layoutPath, services }) { const router = express.Router({ mergeParams: true }); const controller$1 = new controller.RequestStatusController(layoutPath, services); // Status page router.get(`/`, controller$1.GET); // Dynamic loading route router.get('/current-status', controller$1.getCurrentStatus); return router; } exports.default = routes; exports.routes = routes; //# sourceMappingURL=routes.js.map