'use strict';

var utils = require('../../../components/my-reports/utils.js');

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

module.exports = UserReportsController;
//# sourceMappingURL=controller.js.map
