const express = require('express'); const otpController = require('../controllers/otp.controller'); const router = express.Router(); // Send OTP (POST request with body) router.post('/send', otpController.SendOtp); // Verify OTP (GET request with query params ?mobileNumber=xxx&otp=123456) router.post('/verify', otpController.VerifyOtp); //send otp for setting password router.get('/send/set-password', otpController.sendForSetPassword); //verify otp for setting password router.get('/verify/set-password', otpController.verifyForSetPassword); module.exports = router;