From 3cfcb8e5bcb1aa1359d91ff5811dbe2183677686 Mon Sep 17 00:00:00 2001 From: asif Date: Tue, 26 Aug 2025 19:21:16 +0530 Subject: [PATCH 1/2] formatted auth route --- src/routes/auth.route.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/auth.route.js b/src/routes/auth.route.js index ac8c9fb..2ab5178 100644 --- a/src/routes/auth.route.js +++ b/src/routes/auth.route.js @@ -9,6 +9,10 @@ router.get('/user_details', authenticate, authController.fetchUserDetails); router.get('/tpin', authenticate, authController.tpin); router.post('/tpin', authenticate, authController.setTpin); router.post('/login_password', authenticate, authController.setLoginPassword); -router.post('/transaction_password', authenticate, authController.setTransactionPassword); +router.post( + '/transaction_password', + authenticate, + authController.setTransactionPassword +); module.exports = router; From 780eb39c188022553050dd9e42d3dde52696a87c Mon Sep 17 00:00:00 2001 From: asif Date: Tue, 26 Aug 2025 11:47:49 +0530 Subject: [PATCH 2/2] fixed a bug where data and pin validations were not called --- src/routes/imps.route.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/imps.route.js b/src/routes/imps.route.js index 7f6a31d..d0ff998 100644 --- a/src/routes/imps.route.js +++ b/src/routes/imps.route.js @@ -32,5 +32,6 @@ const impsRoute = async (req, res) => { return res.json({ error: 'INTERVAL_SERVER_ERROR' }); } }; +router.post('/', impsRoute); -module.exports = impsRoute; +module.exports = router;