import { Router } from "express";

import { dashboardController } from "../controllers/dashboardController.js";
import { asyncHandler } from "../utils/asyncHandler.js";

const router = Router();

router.get("/kpis", asyncHandler(dashboardController.getKpis));
router.get("/monthly-chart", asyncHandler(dashboardController.getMonthlyChart));
router.get(
  "/journal-distribution",
  asyncHandler(dashboardController.getJournalDistribution),
);
router.get("/recent-entries", asyncHandler(dashboardController.getRecentEntries));
router.get("/alerts", asyncHandler(dashboardController.getAlerts));
router.get(
  "/treasury-balances",
  asyncHandler(dashboardController.getTreasuryBalances),
);
router.get("/rapid-balance", asyncHandler(dashboardController.getRapidBalance));
router.get("/activity", asyncHandler(dashboardController.getActivity));

export default router;

