From e75ff4d65816995cf181c917833d72fb5113a48e Mon Sep 17 00:00:00 2001 From: asif Date: Thu, 7 Aug 2025 02:02:25 +0530 Subject: [PATCH] added authentication for all beneficiary routes added npci routes for receiving responses from NPCI for beneficiary validation requests --- src/routes/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/index.js b/src/routes/index.js index 7a31d85..11473ec 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -5,6 +5,7 @@ const transactionRoute = require('./transactions.route'); const authenticate = require('../middlewares/auth.middleware'); const transferRoute = require('./transfer.route'); const beneficiaryRoute = require('./beneficiary.route'); +const { npciResponse } = require('../controllers/npci.controller'); const router = express.Router(); @@ -12,6 +13,7 @@ router.use('/auth', authRoute); router.use('/customer', authenticate, detailsRoute); router.use('/transactions/account/:accountNo', authenticate, transactionRoute); router.use('/payment/transfer', authenticate, transferRoute); -router.use('/beneficiary', beneficiaryRoute); +router.use('/beneficiary', authenticate, beneficiaryRoute); +router.use('/npci/beneficiary-response', npciResponse); module.exports = router;