Closed Ananto30 closed 3 years ago
We allow to love post by /api/post/:postId/love. So now we need to show that in the /api/post GET API
/api/post/:postId/love
/api/post
loveCount
getAllPostsWithCommentCount
isLovedByMe
Please assign to me @Ananto30 because I have created this API :)
Awesome! 🚀
Please review my PR https://github.com/Ananto30/golpo-express/pull/18 @Ananto30
Context
We allow to love post by
/api/post/:postId/love
. So now we need to show that in the/api/post
GET APITask
loveCount
in response ofgetAllPostsWithCommentCount
. I think change the name of the method too 😅isLovedByMe
in the response.isLovedByMe
true, else false.