'use strict';

var express = require('express');
var routes$1 = require('./form/routes.js');
var routes = require('./submitted/routes.js');

/* eslint-disable no-param-reassign */
function Routes({ layoutPath, services }) {
    const router = express.Router({ mergeParams: true });
    router.use(`/:reportId/:variantId/submitted`, routes.default({ layoutPath }));
    router.use(`/:reportId/:variantId/form`, routes$1.default({ layoutPath, services }));
    return router;
}
const RequestMissingReportRoutes = ({ services, path, layoutPath, }) => {
    const router = express.Router({ mergeParams: true });
    router.use(path, Routes({ services, layoutPath }));
    return router;
};

exports.RequestMissingReportRoutes = RequestMissingReportRoutes;
exports.Routes = Routes;
//# sourceMappingURL=routes.js.map
