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.

24 lines (21 loc) 770 B
import { initMyReports } from '../../../../../components/my-reports/utils.js'; class SubscriptionListController { layoutPath; services; constructor(layoutPath, services) { this.layoutPath = layoutPath; this.services = services; } GET = async (req, res) => { const myReportsData = await initMyReports(req, res, this.services); const list = myReportsData ? myReportsData.requested : {}; res.render(`dpr/routes/journeys/my-reports/view`, { title: 'Subscriptions', id: 'subscriptions-list', layoutPath: this.layoutPath, list, }); }; } export { SubscriptionListController, SubscriptionListController as default }; //# sourceMappingURL=controller.js.map