Decorate AngularJS $http service to convert PUT, DELETE requests to POST
Below is the code for AngularJS 1.0.x to convert PUT
and DELETE
requests to ‘POST’ over the network, but use them as they were. AngularJS 1.0.x has Responses Interceptors but no Request Interceptors (available from 1.1.x). So, I came with this code and of course it’s not pretty :)