axios.post('http://10.0.1.14:8001/api/logout',request_data, {
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer '+token
},
})
.then((response) => {
console.log('response',response.data)
})
.catch((error) => {
alert('error',error.response)
dispatch(userUpdateProfileFail())
})
// console.log('----cheers---------',data)
dispatch(userUpdateProfileSuccess(data))
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter