import { Router } from 'express';
import { RequestReportController } from './controller.js';

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

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