'use strict';

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

var express = require('express');
var controller = require('./controller.js');

/* eslint-disable no-param-reassign */
function routes({ layoutPath, services }) {
    const router = express.Router({ mergeParams: true });
    const controller$1 = new controller.RequestReportController(layoutPath, services);
    router.get('/', controller$1.GET);
    router.post('/', controller$1.POST);
    router.post('/save-defaults', controller$1.saveDefaultFilterValues);
    router.post('/remove-defaults', controller$1.removeDefaultFilterValues);
    return router;
}

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