Fixed a bug with GETs and POSTs in the API