feat: add admin report fetch api
This commit is contained in:
@@ -7,6 +7,8 @@ const router = express.Router();
|
||||
router.post('/login', adminAuthController.login);
|
||||
router.get('/admin_details', adminAuthenticate, adminAuthController.fetchAdminDetails);
|
||||
router.get('/fetch/customer_details',adminAuthenticate,adminAuthController.getUserDetails);
|
||||
|
||||
// User configuration
|
||||
router.post('/user/rights',adminAuthenticate,adminAuthController.UserRights);
|
||||
router.get('/user/rights',adminAuthenticate,adminAuthController.getUserRights);
|
||||
router.post('/user/unlock',adminAuthenticate,adminAuthController.handleUnlockUser);
|
||||
|
||||
@@ -14,16 +14,11 @@ const branchRoute = require('./branch.route');
|
||||
const atmRoute = require('./atm.route');
|
||||
const { npciResponse } = require('../controllers/npci.controller');
|
||||
const otp = require('./otp.route');
|
||||
<<<<<<< HEAD
|
||||
const reports =require('./report.route');
|
||||
|
||||
=======
|
||||
const eMandate = require('./emandate.route');
|
||||
>>>>>>> 7e162e741d4d126fd029b1875bd5e4e0d3c460cf
|
||||
const router = express.Router();
|
||||
|
||||
router.use('/auth', authRoute);
|
||||
router.use('/auth/admin', adminAuthRoute);
|
||||
router.use('/customer', authenticate, detailsRoute);
|
||||
router.use('/transactions/account/:accountNo', authenticate, transactionRoute);
|
||||
router.use('/payment/transfer', authenticate, transferRoute);
|
||||
@@ -32,10 +27,15 @@ router.use('/payment/rtgs', authenticate, rtgsRoute);
|
||||
router.use('/payment/imps', authenticate, impsRoute);
|
||||
router.use('/beneficiary', authenticate, beneficiaryRoute);
|
||||
router.use('/npci/beneficiary-response', npciResponse);
|
||||
router.use('/report',adminAuthenticate,reports);
|
||||
router.use('/otp', otp);
|
||||
router.use('/e-mandate', authenticate, eMandate);
|
||||
router.use('/branch', authenticate, branchRoute);
|
||||
router.use('/atm', authenticate, atmRoute);
|
||||
|
||||
// OTP
|
||||
router.use('/otp', otp);
|
||||
|
||||
// Admin APIs
|
||||
router.use('/auth/admin', adminAuthRoute);
|
||||
router.use('/report',adminAuthenticate,reports);
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user