Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios delete request payload

//instead of
axios.put(url, { foo: "bar" });

//wrap the data in the data propery of a new object
axios.delete(url, { data: { foo: "bar" } });
Source by github.com #
 
PREVIOUS NEXT
Tagged: #axios #delete #request #payload
ADD COMMENT
Topic
Name
3+1 =