1axios.delete(URL, {
2 headers: {
3 Authorization: authorizationToken
4 },
5 data: {
6 source: source
7 }
8});
1//instead of
2axios.put(url, { foo: "bar" });
3
4//wrap the data in the data propery of a new object
5axios.delete(url, { data: { foo: "bar" } });