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
