fac-14 / OSCEBossKey

Weeks 13-16 > Tech for Better project: An app to help medical students revise for their exams
https://oscebosskey.herokuapp.com/
MIT License
3 stars 2 forks source link

GET performs a DB create #143

Open tbtommyb opened 5 years ago

tbtommyb commented 5 years ago

Here you're creating a DB record in a GET request.

Generally requests that modify the server's state should use POST or PATCH and GET requests should be idempotent.

You do this correctly in the other create handlers so I guess this was just an oversight!