import { initUserReports } from '../../../components/user-reports/utils.js';

class UserReportsController {
    layoutPath;
    services;
    constructor(layoutPath, services) {
        this.layoutPath = layoutPath;
        this.services = services;
    }
    GET = async (_req, res) => {
        const userReportsLists = await initUserReports({ services: this.services, res, maxRows: 20 });
        res.render(`dpr/routes/journeys/my-reports/user-reports-view`, {
            layoutPath: this.layoutPath,
            userReportsLists,
        });
    };
}

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