feat: add page cart

This commit is contained in:
2026-06-23 16:39:57 +03:00
parent d8ea3094a1
commit d9745d972a
3 changed files with 70 additions and 0 deletions
+5
View File
@@ -38,3 +38,8 @@ export const updateItem = (id, itemData) =>
export const deleteItem = (id) => axios.delete(`${API_URL}/items/${id}`);
export const getAllCategories = () => axios.get(`${API_URL}/getCategories`)
export const getCart = () => axios.get(`${API_URL}/cart/`);
export const addToCart = (data) => axios.post(`${API_URL}/cart/`, data)
export const updateCartItem = (id, data) => axios.post(`${API_URL}/cart/${id}`, data)
export const removeFromCart = (id) => axios.post(`${API_URL}/cart/${id}`)