Closed tsheinen closed 9 years ago
amount should be either 1 or -1
Thank you very much for your contribution! I'm sorry that I'm not merging this request, I'm implementing voting functionality a bit differently now. Besides I've just done a lot of refactoring, and I'm still thinking about the right way to organize the application. But it it still very valuable, and I'm very grateful for you help.
POST "voter" and "amount" to /story/name/vote to do so. At the moment, it returns the aggregate score. I was going to have it verify the username existed, but I couldn't figure it out. I do have some concerns about scalability, but this is a prototype.