axios pass data to delete code example
Example: 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" } });
//instead of
axios.put(url, { foo: "bar" });
//wrap the data in the data propery of a new object
axios.delete(url, { data: { foo: "bar" } });