added authentication for all beneficiary routes

added npci routes for receiving responses from NPCI for beneficiary validation requests
This commit is contained in:
2025-08-07 02:02:25 +05:30
parent ecb9b14629
commit e75ff4d658

View File

@@ -5,6 +5,7 @@ const transactionRoute = require('./transactions.route');
const authenticate = require('../middlewares/auth.middleware'); const authenticate = require('../middlewares/auth.middleware');
const transferRoute = require('./transfer.route'); const transferRoute = require('./transfer.route');
const beneficiaryRoute = require('./beneficiary.route'); const beneficiaryRoute = require('./beneficiary.route');
const { npciResponse } = require('../controllers/npci.controller');
const router = express.Router(); const router = express.Router();
@@ -12,6 +13,7 @@ router.use('/auth', authRoute);
router.use('/customer', authenticate, detailsRoute); router.use('/customer', authenticate, detailsRoute);
router.use('/transactions/account/:accountNo', authenticate, transactionRoute); router.use('/transactions/account/:accountNo', authenticate, transactionRoute);
router.use('/payment/transfer', authenticate, transferRoute); router.use('/payment/transfer', authenticate, transferRoute);
router.use('/beneficiary', beneficiaryRoute); router.use('/beneficiary', authenticate, beneficiaryRoute);
router.use('/npci/beneficiary-response', npciResponse);
module.exports = router; module.exports = router;