Skip to content

Commit 1ae88d8

Browse files
authored
Merge branch 'Project-Developers-2k24:dev' into dev
2 parents 50303ce + ccafee7 commit 1ae88d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/controllers/userController.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function getChatMaruti(req, res) {
2424
formData.append("page", page);
2525
formData.append("limit", limit);
2626
const response = await axios.post(
27-
"https://f955c179-bacd-41d6-8b82-a3e8b03f9219.deepnoteproject.com/getChats",
27+
"http://4.240.83.113:8080/getChats",
2828
formData
2929
);
3030

@@ -50,7 +50,7 @@ const getPdfData = async (req, res) => {
5050
const formData = new FormData();
5151
formData.append("userId", userId);
5252
const response = await axios.post(
53-
"https://f955c179-bacd-41d6-8b82-a3e8b03f9219.deepnoteproject.com/getAllData",
53+
"http://4.240.83.113:8080/getAllData",
5454
formData
5555
// { headers: formData.getHeaders() } // Include multipart/form-data headers
5656
);
@@ -74,7 +74,7 @@ const askChatBot = async (req, res) => {
7474
formData.append("question", question);
7575
formData.append("selected_book", selected_book);
7676
const response = await axios.post(
77-
"https://f955c179-bacd-41d6-8b82-a3e8b03f9219.deepnoteproject.com/ask",
77+
"http://4.240.83.113:8080/ask",
7878
formData
7979
// { headers: formData.getHeaders() } // Include multipart/form-data headers
8080
);
@@ -114,7 +114,7 @@ const uploadBooks = async (req, res) => {
114114

115115
// Make further API call using Axios
116116
const axiosResponse = await axios.post(
117-
"https://f955c179-bacd-41d6-8b82-a3e8b03f9219.deepnoteproject.com/upload",
117+
"http://4.240.83.113:8080/upload",
118118
formData
119119
// { headers: formData.getHeaders() }
120120
);
@@ -446,7 +446,7 @@ async function deleteBook(req, res) {
446446

447447
const axiosResponse = await axios({
448448
method: "delete",
449-
url: "https://f955c179-bacd-41d6-8b82-a3e8b03f9219.deepnoteproject.com/delete",
449+
url: "http://4.240.83.113:8080/delete",
450450
data: formData,
451451
headers: { "Content-Type": "multipart/form-data" }, // Include multipart/form-data headers
452452
});

0 commit comments

Comments
 (0)