restangular icon indicating copy to clipboard operation
restangular copied to clipboard

How to change request method 'put' to 'patch'?

Open shikelong opened this issue 10 years ago • 2 comments

I use 'addFullRequestIntercepor' like next. but It not work.

 RestangularProvider.addFullRequestInterceptor(function(elem, operation, what, url, headers, params, httpConfig) {
        if(operation=="put"){
            operation="patch";
        }
    });

Regards.

shikelong avatar Jul 09 '15 13:07 shikelong

+1

AlexH7 avatar Sep 25 '15 08:09 AlexH7

? +1

cyrilchapon avatar Feb 09 '17 09:02 cyrilchapon