From 7da8fa18f702d5c0bfb6217d9f31449cb45c19bb Mon Sep 17 00:00:00 2001 From: jihwooon Date: Tue, 12 Mar 2024 14:09:05 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88=20A?= =?UTF-8?q?PI=20=EA=B2=BD=EB=A1=9C=20=EB=B0=8F=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 서버 API 호출 경로 변경에 따라 클라이언트 코드를 업데이트했습니다. - /cart → /carts - client/src/api/cart.api.ts: API 호출 경로 수정 - client/src/components/book/AddToCart.tsx: 장바구니 이동 버튼 링크 수정 - client/src/components/common/Header.tsx: 장바구니 메뉴 링크 수정 --- client/src/api/cart.api.ts | 2 +- client/src/components/book/AddToCart.tsx | 2 +- client/src/components/common/Header.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/api/cart.api.ts b/client/src/api/cart.api.ts index ca8da33..57841fe 100644 --- a/client/src/api/cart.api.ts +++ b/client/src/api/cart.api.ts @@ -7,7 +7,7 @@ interface AddCartParams { } export const addCart = async (params: AddCartParams) => { - const response = await httpClient.post('/cart', params) + const response = await httpClient.post('/carts', params) return response.data }; diff --git a/client/src/components/book/AddToCart.tsx b/client/src/components/book/AddToCart.tsx index 282a034..c8918e0 100644 --- a/client/src/components/book/AddToCart.tsx +++ b/client/src/components/book/AddToCart.tsx @@ -43,7 +43,7 @@ const AddToCart = ({ book }: Props) => {

장바구니에 추가되었습니다.

- 장바구니 이동 + 장바구니 이동
); diff --git a/client/src/components/common/Header.tsx b/client/src/components/common/Header.tsx index e3ab2de..661f8ec 100644 --- a/client/src/components/common/Header.tsx +++ b/client/src/components/common/Header.tsx @@ -31,7 +31,7 @@ const Header = () => { { isloggedIn && (