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.

23 lines (20 loc) 759 B
import { initMyReports } from '../../../../../components/my-reports/utils.js'; class BookmarkListingController { layoutPath; services; constructor(layoutPath, services) { this.layoutPath = layoutPath; this.services = services; } GET = async (req, res, _next) => { const myReportsData = await initMyReports(req, res, this.services); const list = myReportsData && myReportsData.bookmarks ? myReportsData.bookmarks : {}; res.render(`dpr/routes/journeys/my-reports/view`, { title: 'Bookmarks', layoutPath: this.layoutPath, list, }); }; } export { BookmarkListingController, BookmarkListingController as default }; //# sourceMappingURL=controller.js.map