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;