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

/* eslint-disable no-param-reassign */
function routes({ layoutPath, services }) {
    const router = Router({ mergeParams: true });
    const controller = new ViewSyncDashboardController(layoutPath, services);
    router.get([`/`], controller.GET);
    // Interactive controls
    router.post('/apply-filters', controller.applyFilters);
    return router;
}

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