feat: add route dashboard

This commit is contained in:
Rizki
2026-03-11 15:25:37 +07:00
parent 446e32314e
commit 23ea31d78b
3 changed files with 422 additions and 0 deletions

13
routes/dashboard.js Normal file
View File

@ -0,0 +1,13 @@
const express = require('express');
// const { body } = require('express-validator');
const dashboardController = require('../controllers/dashboard.js');
const jwtauth = require('../middlewares/auth.js');
const router=express.Router();
//=== POST & get METHOD
router.get('/summary',[jwtauth], dashboardController.getDashboardSummary);
router.get('/budget-line',dashboardController.getBudgetLineChart);
router.get('/procurement-chart',dashboardController.getProcurementStackedChart);
router.get('/budget-utilization',dashboardController.getMonthlyBudgetUtilization);
module.exports = router;