Skip to content

Commit

Permalink
🐛 Fix: 참여하기 취소 잘못된 method delete로 변경 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-paik committed Jun 26, 2023
1 parent 863e65b commit bc9c7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export const postLike = async (postId) => {
/* 좋아요 취소 */
export const deleteLike = async (postId) => {
try {
const response = await authInstance.post(`/post/${postId}/unheart`);
const response = await authInstance.delete(`/post/${postId}/unheart`);
return response.data;
} catch (error) {
console.log(error);
Expand Down

0 comments on commit bc9c7f0

Please sign in to comment.