Athensworks / OBWapp-API

Apache License 2.0
2 stars 0 forks source link

Admin API should check that beer and establishment IDs are valid #12

Closed pagan8 closed 9 years ago

pagan8 commented 9 years ago

Add code to the admin API to validate beer and establishment IDs

pagan8 commented 9 years ago

Fixed - added this code to /admin/statuses for POST and PUT. Its probably not really needed for PUT, but it adds a layer of extra protection. Its not needed for /admin/establishments or /admin/beers as those already check for valid ids...