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

/* eslint-disable no-param-reassign */
function routes({ layoutPath, services }) {
    const router = Router({ mergeParams: true });
    const controller = new ViewSyncReportController(layoutPath, services);
    router.get([`/`, `/download-disabled`], controller.GET);
    // Interactive controls
    router.post('/apply-filters', controller.applyFilters);
    router.post('/apply-columns', controller.applyColumns);
    // User defined defaults
    router.post('/save-defaults', controller.saveDefaultFilterValues);
    router.post('/remove-defaults', controller.removeDefaultFilterValues);
    return router;
}

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