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

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

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