Skip to content

Commit

Permalink
Merge pull request #342 from woowacourse-teams/refactor/333-remove-un…
Browse files Browse the repository at this point in the history
…used-api

client의 미사용 API 제거
  • Loading branch information
solo5star authored Aug 15, 2023
2 parents f9c3e00 + c7cba2d commit 7d82b91
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,6 @@ class Client {
await this.fetch(`/cafes/${cafeId}/likes?isLiked=${isLiked}`, { method: 'POST' });
}

addFavoriteCafe(cafeId: Cafe['id']) {
return this.fetchJson<void>(`/cafes/${cafeId}/likes`, { method: 'POST' });
}

removeFavoriteCafe(cafeId: Cafe['id']) {
return this.fetchJson<void>(`/cafes/${cafeId}/likes`, { method: 'DELETE' });
}

/**
* 인증 수행 시, OAuth 제공자(provider)와 인증 코드(Authorization Code) 값을
* 백엔드에 전송하면 백엔드에서 발급한 accessToken을 응답으로 받을 수 있다.
Expand Down

0 comments on commit 7d82b91

Please sign in to comment.