summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) => {