JavaScript axios delete method not working in react axios delete method not allowed,axios delete method body,axios

i have tried to perform axios.delete operation in react, unfortunately it is not working, please help me to solve this issue,

export function DeletePatient(token,deletePatient) {
  return axios.delete('/patient/billing_delete',deletePatient, {
    headers: {
      'Content-Type': 'application/json',
      'token': token
    }
  })
    .then(res => { console.log(token); return res.data })
    .catch(err => { console.log(err); return err })
}

from my API response, i understood that my token is passed to backend, so i think i should change the structure of this code, please help me

Answer:1

i get weather json from forecast.io and in json data forecast.io have timestamp : time:1445767494,"summary":"صافِ","icon":"clear-day","precipIntensity":0,"precipProbability":0,"temperature":32.99,"...

i get weather json from forecast.io and in json data forecast.io have timestamp : time:1445767494,"summary":"صافِ","icon":"clear-day","precipIntensity":0,"precipProbability":0,"temperature":32.99,"...

So I wanted to make a webpage in which on button click, the background color changes. Its showing TypeError on loading in browser but its working fine after pasting same JavaScript on console. Code ...

So I wanted to make a webpage in which on button click, the background color changes. Its showing TypeError on loading in browser but its working fine after pasting same JavaScript on console. Code ...

  1. typeerror button is null
  2. typeerror button is null learn more

When I click on the link << Add Call >> the modal is opened with custom URL but in the background is a blank view, I want the previous state to still appearing behind the modal when opened ...

When I click on the link << Add Call >> the modal is opened with custom URL but in the background is a blank view, I want the previous state to still appearing behind the modal when opened ...

  1. view previous state tax returns

I got a "show more" button thats works. The problem I'm having is, it uses the text from var text I want it to use it directly from HTML, any suggestions? var status = "less"; function ...

I got a "show more" button thats works. The problem I'm having is, it uses the text from var text I want it to use it directly from HTML, any suggestions? var status = "less"; function ...