summaryrefslogtreecommitdiff
path: root/client/src/services
diff options
context:
space:
mode:
authorrohan09-raj <[email protected]>2022-08-23 14:39:22 +0530
committerrohan09-raj <[email protected]>2022-08-23 14:39:22 +0530
commitffd2c78b86111a5d1f7914e7dab4ffc946cb5287 (patch)
treea9e672e566668e89a71d947c5aac30dca1d8c3d1 /client/src/services
parent0602eb75a81966770c9fbc09b7685522e5b94d0c (diff)
check status feature
Diffstat (limited to 'client/src/services')
-rw-r--r--client/src/services/apiservice.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/services/apiservice.js b/client/src/services/apiservice.js
index 31262f6..ffb6df6 100644
--- a/client/src/services/apiservice.js
+++ b/client/src/services/apiservice.js
@@ -1,7 +1,7 @@
import axios from 'axios'
const apiClient = axios.create({
- baseURL: 'https://aadhaar-kiosk.herokuapp.com/'
+ baseURL: 'http://localhost:5000'
})
export const createUser = async (payload) => {
@@ -14,6 +14,11 @@ export const getUserByAadhaar = async (aadhaarNumber) => {
return response
}
+export const getUser = async (id, payload) => {
+ const response = await apiClient.get(`/user/${id}`, payload)
+ return response
+}
+
export const updateUser = async (id, payload) => {
const response = await apiClient.patch(`/user/${id}`, payload)
return response