'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.ViewSyncReportController(layoutPath, services);
    router.get([`/`, `/download-disabled`], controller$1.GET);
    // Interactive controls
    router.post('/apply-filters', controller$1.applyFilters);
    router.post('/apply-columns', controller$1.applyColumns);
    // User defined defaults
    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
