'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var utils = require('../../../../../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 utils.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,
        });
    };
}

exports.BookmarkListingController = BookmarkListingController;
exports.default = BookmarkListingController;
//# sourceMappingURL=controller.js.map
