From d9d0217dc0d8dc7113a4be78b7da769c7f23900b Mon Sep 17 00:00:00 2001 From: William Chong Date: Tue, 3 Dec 2024 12:16:30 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Combine=20cart=20API=20pat?= =?UTF-8?q?h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/api/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/api/index.js b/src/util/api/index.js index 3ae23719e..942eb92a1 100644 --- a/src/util/api/index.js +++ b/src/util/api/index.js @@ -455,8 +455,8 @@ export const postUserV2Login = () => '/api/v2/users/login'; export const postUserV2Logout = () => '/api/v2/users/logout'; export const getShoppingCart = () => '/api/v2/users/cart'; -export const postShoppingCart = () => '/api/v2/users/cart'; -export const deleteShoppingCart = () => '/api/v2/users/cart'; +export const postShoppingCart = getShoppingCart; +export const deleteShoppingCart = getShoppingCart; export const postUserV2WalletEmail = ({ email,