import { Router } from 'express';
import { RecentlyViewedReportsController } from './controller.js';
import routes$1 from './list/routes.js';

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

export { routes as default, routes };
//# sourceMappingURL=routes.js.map
