Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Having Restangular's .remove send data in body vs URI

I am in the process of converting my Angular REST calls to utilize Restangular. During this conversion I am simply moving the calls to use Restangular.one('controller').remove(object); This is calling the correct URI and method DELETE but is sending the object in the URI instead of the body. Is there an easy way to tell Restangular to send the object in the body? For POST/PUT I have utilized customPOST and customPUT which send the data in the body. Any pointers would be much appreciated.

like image 697
Skylude Avatar asked Jan 27 '26 21:01

Skylude


1 Answers

You can use customDELETE for that :).

like image 144
mgonto Avatar answered Jan 29 '26 11:01

mgonto