summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrohan09-raj <rajrohan1914@gmail.com>2023-01-29 20:21:33 +0530
committerrohan09-raj <rajrohan1914@gmail.com>2023-01-29 20:21:33 +0530
commit7759e6d2de4ecc919f1446e363fc0c2b9269609c (patch)
treecfae5e53befeefaea7b34fa0714c293b06a98e64
parent54d26f03666dd8dc457bd66403d9badd42509296 (diff)
changed api service url
-rw-r--r--admin/.env1
-rw-r--r--admin/src/services/apiservice.js10
-rw-r--r--client/src/services/apiservice.js2
3 files changed, 6 insertions, 7 deletions
diff --git a/admin/.env b/admin/.env
deleted file mode 100644
index 2b5fd4e..0000000
--- a/admin/.env
+++ /dev/null
@@ -1 +0,0 @@
-BASE_API_URL = http://localhost:5000 \ No newline at end of file
diff --git a/admin/src/services/apiservice.js b/admin/src/services/apiservice.js
index d72a5fb..fa472e3 100644
--- a/admin/src/services/apiservice.js
+++ b/admin/src/services/apiservice.js
@@ -1,16 +1,16 @@
-import axios from 'axios';
+import axios from "axios";
const apiClient = axios.create({
- baseURL: 'http://localhost:5000',
+ baseURL: "https://aadhaar-kiosk-server.onrender.com",
});
export const getVerifiedUsers = async () => {
- const response = await apiClient.get('/users/verified');
+ const response = await apiClient.get("/users/verified");
return response;
};
export const getUnverifiedUsers = async () => {
- const response = await apiClient.get('/users/unverified');
+ const response = await apiClient.get("/users/unverified");
return response;
};
@@ -30,6 +30,6 @@ export const getUpdatingUsers = async () => {
};
export const sendMessage = async (payload) => {
- const response = await apiClient.post('/messages', payload);
+ const response = await apiClient.post("/messages", payload);
return response;
};
diff --git a/client/src/services/apiservice.js b/client/src/services/apiservice.js
index ffb6df6..3d02dd4 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: 'http://localhost:5000'
+ baseURL: 'https://aadhaar-kiosk-server.onrender.com'
})
export const createUser = async (payload) => {