From bb556746ec8d30de6cdc457a058c6195127665d0 Mon Sep 17 00:00:00 2001 From: pawan-dot <71133473+pawan-dot@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:55:36 +0530 Subject: [PATCH] change patient api with token --- resources/Patients/PatientController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/Patients/PatientController.js b/resources/Patients/PatientController.js index 2dc2763..4ea49ad 100644 --- a/resources/Patients/PatientController.js +++ b/resources/Patients/PatientController.js @@ -32,7 +32,7 @@ export const register = async (req, res) => { - return res.status(200).json({ patient, message: `OTP sent to your mobile number ${fullMobileNumber} successfully` }); + return res.status(200).json({ message: `OTP sent to your mobile number ${fullMobileNumber} successfully` }); } catch (error) { res.status(500).json({ message: error.message ? error.message : "Server error!",