added upvate, downvote to endpoints