feat: add route dashboard
This commit is contained in:
13
routes/dashboard.js
Normal file
13
routes/dashboard.js
Normal 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;
|
||||
Reference in New Issue
Block a user