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

function routes({ layoutPath, services }) {
    const router = Router({ mergeParams: true });
    const controller = new RequestedReportsController(services);
    router.get('/row/:reportId/:id/:executionId/:tableId', controller.GET);
    router.post('/remove-item/:executionId', controller.POST);
    router.use(`/list`, routes$1({ layoutPath, services }));
    return router;
}

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