Skip to content

Commit

Permalink
Feat: 게시글 좋아요 API 함수 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken committed Oct 31, 2023
1 parent 2f03c8b commit 2af8960
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/api/boards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ export const deleteComment = async (commentId: string) => {
const result = await webServerInstance.put(`comments/${commentId}`);
return result.data;
};

export const postLike = async (postId: string) => {
const result = await webServerInstance.post(`likes/${postId}`);
return result.data;
};

0 comments on commit 2af8960

Please sign in to comment.