import { initMyReports } from '../../../../../components/my-reports/utils.js';

class RequestedReportsListController {
    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: 'Requested reports',
            id: 'requested-reports-list',
            layoutPath: this.layoutPath,
            list,
        });
    };
}

export { RequestedReportsListController, RequestedReportsListController as default };
//# sourceMappingURL=controller.js.map
