export const axiosPutReq = (url, data, authenticationId) => {
return new Promise((resolve, reject) => {
axios({
method: "put",
url,
data,
headers: {
Authorization: "Bearer " + authenticationId,
"Content-Type": "application/json",
Accept: "application/json"
}
})
.then(response => {
resolve(response.data);
})
.catch(error => {
reject(error);
});
});
};