There is the following code:
params =
method: 'DELETE'
url: "profiles/#{@currentProfile.id}/boxes/#{@box.id}/messages"
data:
ids: ids
headers:
"Content-Type": "application/json;charset=utf-8"
$http(params)
When I execute this DELETE request I see that this request has no body, i.e. my request has no "ids" param in the body. How can I fix it? I saw some answer on StackOverflow, where people gave advice to set 'Content-Type' header. I did it, but it didn't help me.