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.

21 lines (18 loc) 624 B
import { initMyReports } from '../../../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 initMyReports(req, res, this.services, { maxRows: 20 }); res.render(`dpr/routes/journeys/my-reports/user-reports-view`, { layoutPath: this.layoutPath, myReportsData, }); }; } export { UserReportsController as default }; //# sourceMappingURL=controller.js.map