diff options
author | rohan09-raj <[email protected]> | 2022-08-19 00:10:29 +0530 |
---|---|---|
committer | rohan09-raj <[email protected]> | 2022-08-19 00:10:42 +0530 |
commit | 953dd3c954411d92811415cc9be4a7c7d76ab185 (patch) | |
tree | 0bd2aa118361bbe70f0ac0b62da3c12fa1cb902f /client/src/services | |
parent | a9ed2c9daa5a3e065401996daf922f59de7f0101 (diff) |
added otp support
Diffstat (limited to 'client/src/services')
-rw-r--r-- | client/src/services/apiservice.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/services/apiservice.js b/client/src/services/apiservice.js index 305d557..0aa9337 100644 --- a/client/src/services/apiservice.js +++ b/client/src/services/apiservice.js @@ -18,3 +18,8 @@ export const updateUser = async (id, payload) => { const response = await apiClient.patch(`/user/${id}`, payload) return response } + +export const sendOTP = async (payload) => { + const response = await apiClient.post('/otp', payload) + return response +} |