From c7cba2d06a8c759a31078ea761e1ddc8853fbdae Mon Sep 17 00:00:00 2001 From: solo5star Date: Fri, 11 Aug 2023 02:23:34 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20client=EC=9D=98=20=EB=AF=B8?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=20API=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/client.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/client/src/client.ts b/client/src/client.ts index f560567c..372c5375 100644 --- a/client/src/client.ts +++ b/client/src/client.ts @@ -88,14 +88,6 @@ class Client { await this.fetch(`/cafes/${cafeId}/likes?isLiked=${isLiked}`, { method: 'POST' }); } - addFavoriteCafe(cafeId: Cafe['id']) { - return this.fetchJson(`/cafes/${cafeId}/likes`, { method: 'POST' }); - } - - removeFavoriteCafe(cafeId: Cafe['id']) { - return this.fetchJson(`/cafes/${cafeId}/likes`, { method: 'DELETE' }); - } - /** * 인증 수행 시, OAuth 제공자(provider)와 인증 코드(Authorization Code) 값을 * 백엔드에 전송하면 백엔드에서 발급한 accessToken을 응답으로 받을 수 있다.