feat: add page profile with orders
This commit is contained in:
@@ -45,5 +45,8 @@ export const updateCartItem = (id, data) =>
|
||||
axios.post(`${API_URL}/cart/${id}`, data);
|
||||
export const removeFromCart = (id) => axios.delete(`${API_URL}/cart/${id}`);
|
||||
export const createOrder = (data) => axios.post(`${API_URL}/orders/`, data);
|
||||
export const getUserOrders = () => axios.get(`${API_URL}/orders/`);
|
||||
export const getUserOrders = () => axios.get(`${API_URL}/orders`);
|
||||
export const getOrder = (id) => axios.get(`${API_URL}/orders/${id}`);
|
||||
|
||||
export const updateProfile = () => axios.patch(`${API_URL}/profile`);
|
||||
export const getUserInfo = () => axios.get(`${API_URL}/profile`);
|
||||
|
||||
Reference in New Issue
Block a user