Commit e555044e authored by Nikitha Moosapet's avatar Nikitha Moosapet

[nmoosapet]Updated the IP Address which are pointing to backend

parent 1487ca0f
class Config { class Config {
static baseApiUrl = "http://localhost:8080"; //env file static baseApiUrl = "13.93.237.130:8084"; //env file
static orderHistoryApiUrlMethod = (userId) => `${this.baseApiUrl}/api/orders/byUser/${userId}`; static orderHistoryApiUrlMethod = (userId) => `${this.baseApiUrl}/api/orders/byUser/${userId}`;
......
import axios from 'axios'; import axios from 'axios';
export const fetchUserCart = userEmail => { export const fetchUserCart = userEmail => {
return axios.get(`http://localhost:8080/api/carts/${userEmail}`) return axios.get(`13.93.237.130:8084/api/carts/${userEmail}`)
} }
export const createCart = newCart => { export const createCart = newCart => {
return axios.post(`http://localhost:8080/api/carts`, newCart) return axios.post(`13.93.237.130:8084/api/carts`, newCart)
} }
export const updateCart = (updatedCart, userEmail) => { export const updateCart = (updatedCart, userEmail) => {
// debugger // debugger
return axios.put(`http://localhost:8080/api/carts/${userEmail}`, updatedCart) return axios.put(`13.93.237.130:8084/api/carts/${userEmail}`, updatedCart)
} }
\ No newline at end of file
import axios from 'axios' import axios from 'axios'
export const sendOrderPost = (order) => { export const sendOrderPost = (order) => {
return axios.post("http://localhost:8080/api/orders", order) return axios.post("13.93.237.130:8084/api/orders", order)
} }
\ No newline at end of file
...@@ -6,7 +6,7 @@ export const postUser = (user) => { ...@@ -6,7 +6,7 @@ export const postUser = (user) => {
} }
// export const postUser = (user) => { // export const postUser = (user) => {
// return fetch("http://localhost:8080/api/users", {method: "POST", body: JSON.stringify(user), headers: {"Content-Type": "application/json"}}) // return fetch("13.93.237.130:8084/api/users", {method: "POST", body: JSON.stringify(user), headers: {"Content-Type": "application/json"}})
// } // }
// export const postLogOutUser = (user) => { // export const postLogOutUser = (user) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment