import { Router } from 'express';
import routes$3 from './load-report/routes.js';
import routes$1 from './report/routes.js';
import routes$2 from './dashboard/routes.js';
import reportAuthoriser from '../../../../middleware/reportAuthoriser.js';

/* eslint-disable no-param-reassign */
function routes({ layoutPath, services }) {
    const router = Router({ mergeParams: true });
    router.use('/report', reportAuthoriser(services, layoutPath), routes$1({ layoutPath, services }));
    router.use('/dashboard', reportAuthoriser(services, layoutPath), routes$2({ layoutPath, services }));
    router.use(`/load-report`, routes$3({ layoutPath, services }));
    return router;
}

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