Closed unusep closed 7 years ago
Looks like a good idea. I'll make the changes after camp.
Pros
Cons
Hmm I see your point. @ZhangHanming do you think it's important to retain that information after someone unvotes? For me, I think not so much.
@irvinlim unvoting can be done with just simply deleting the entry. Retaining the entry is unnecessary and adds more trouble when the user votes again (need to check if he has voted and whether his previous votes are marked invalid already => more db queries).
Would it be better to use
POST /question/:id/vote
for upvotes/downvotesDELETE /question/:id/vote
for unvoting (removing up/down votes)