@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
23 lines (19 loc) • 631 B
JavaScript
;
var utils = require('../../../components/my-reports/utils.js');
class UserReportsController {
layoutPath;
services;
constructor(layoutPath, services) {
this.layoutPath = layoutPath;
this.services = services;
}
GET = async (req, res) => {
const myReportsData = await utils.initMyReports(req, res, this.services, { maxRows: 20 });
res.render(`dpr/routes/journeys/my-reports/user-reports-view`, {
layoutPath: this.layoutPath,
myReportsData,
});
};
}
module.exports = UserReportsController;
//# sourceMappingURL=controller.js.map