'use strict';

var express = require('express');
var controller = require('./controller.js');
var routes = require('./bookmarks/routes.js');
var routes$1 = require('./recently-viewed/routes.js');
var routes$2 = require('./requested-reports/routes.js');

/* eslint-disable no-param-reassign */
function Routes({ layoutPath, services }) {
    const router = express.Router({ mergeParams: true });
    const userReportsController = new controller(layoutPath, services);
    router.get(`/`, userReportsController.GET);
    router.use(`/bookmarks`, routes.default({ layoutPath, services }));
    router.use(`/recently-viewed`, routes$1.default({ layoutPath, services }));
    router.use(`/requested-reports`, routes$2.default({ layoutPath, services }));
    return router;
}
const MyReportsRoutes = ({ services, path, layoutPath, }) => {
    const router = express.Router({ mergeParams: true });
    router.use(path, Routes({ services, layoutPath }));
    return router;
};

exports.MyReportsRoutes = MyReportsRoutes;
exports.Routes = Routes;
//# sourceMappingURL=routes.js.map
