'use strict';

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

var express = require('express');
var controller = require('./controller.js');
var routes$1 = require('./list/routes.js');

/* eslint-disable no-param-reassign */
function routes({ layoutPath, services }) {
    const router = express.Router({ mergeParams: true });
    const controller$1 = new controller.RecentlyViewedReportsController(services);
    const asyncRemovePath = '/remove-item/:executionId/table-id/:tableId';
    const syncRemovePath = '/remove-item/report-id/:reportId/id/:id';
    router.post([asyncRemovePath, syncRemovePath], controller$1.POST);
    router.use(`/list`, routes$1.default({ layoutPath, services }));
    return router;
}

exports.default = routes;
exports.routes = routes;
//# sourceMappingURL=routes.js.map
