'use strict';

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

var express = require('express');
var routes$1 = require('./report/routes.js');
var routes$2 = require('./dashboard/routes.js');
var reportAuthoriser = require('../../../../middleware/reportAuthoriser.js');

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

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