@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
JavaScript
import { initCatalogue } from '../../../components/_catalogue/catalogue/utils.js';
class ReportCatalogueController {
layoutPath;
services;
constructor(layoutPath, services) {
this.layoutPath = layoutPath;
this.services = services;
}
GET = async (req, res) => {
const catalogue = await initCatalogue({ res, req, services: this.services });
res.render(`dpr/routes/journeys/report-catalogue/view`, {
layoutPath: this.layoutPath,
catalogue,
});
};
}
export { ReportCatalogueController as default };
//# sourceMappingURL=controller.js.map