Commit 396c82b7 authored by Xiyang Lu's avatar Xiyang Lu

resolve conflict in cart action js

parent 08831eb5
import axios from 'axios';
<<<<<<< HEAD
export const postCart = (data) => {
return axios.post("http://localhost:8080/api/carts", data)
}
export const getCartById = (id) => {
return axios.get("http://localhost:8080/api/carts", {
params: {
userId: id
}
})
=======
export const fetchUserCart = userEmail => {
return axios.get(`http://localhost:8080/api/carts/${userEmail}`)
}
......@@ -23,5 +11,4 @@ export const createCart = newCart => {
export const updateCart = (updatedCart, userEmail) => {
// debugger
return axios.put(`http://localhost:8080/api/carts/${userEmail}`, updatedCart)
>>>>>>> 1f99e20fa13caaa629b4886d2be1b9d96bb9aa82
}
\ No newline at end of file
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