Below is the code snippet:
params =
method: 'DELETE'
url: "profiles/#{@currentProfile.id}/boxes/#{@box.id}/messages"
data:
ids: ids
headers:
"Content-Type": "application/json;charset=utf-8"
$http(params)
After executing this DELETE request, I noticed that the request does not contain a body, meaning the "ids" parameter is missing in the body. How can I resolve this issue? I came across some suggestions on StackOverflow advising to set the 'Content-Type' header but even after doing so, it didn't solve my problem.