Refactor to use a post request
You can create an interface, but for now, you can use a piece of software called Insomnia to make post requests :)
Thank you for demonstrating the wonder of POST requests! Leaving this as a GET right now for demonstration purposes. 💖
I would still vote for POST request.
With GET request it's possible to send someone a url which instantly votes for them. This sounds like security issue.
For example: http://localhost/vote/a1b2c3d4e/2
Ok! I'm good with switching to a POST request (if it hasn't already been altered in another pull request). Feel free to resubmit!
@all-contributors please add @simon-tiger for code and ideas