added upvote and downvote endpoints