bounswe / bounswe2022group4

6 stars 3 forks source link

Frontend: Backend Connection For Vote Post #411

Closed umutdenizsenerr closed 1 year ago

umutdenizsenerr commented 1 year ago

I have implemented the backend connection for upvoting and downvoting the posts.

BeratDamar commented 1 year ago

I reviewed "handleDownvote" and "handleUpvote" functions. You called API via that functins and you created a boolean variable to store information about whether there is update on number of upvotes and downvotes. You rendered page according to that variable. It is good solution for that feature. I also checked response of downvote and upvote APIs. All of them worked as we desired. Therefore, I will merge. Thanks !