This commit is contained in:
j3d1 2024-02-03 00:49:15 +01:00
parent 43fc551fc8
commit b356a85628

View file

@ -47,7 +47,7 @@ const http = {
method: 'POST', method: 'POST',
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Authorization": `Token ${data.token}`, "Authorization": `Token ${token}`,
}, },
body: JSON.stringify(data), body: JSON.stringify(data),
}); });
@ -62,7 +62,7 @@ const http = {
method: 'PUT', method: 'PUT',
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Authorization": `Token ${data.token}`, "Authorization": `Token ${token}`,
}, },
body: JSON.stringify(data), body: JSON.stringify(data),
}); });
@ -77,7 +77,7 @@ const http = {
method: 'PATCH', method: 'PATCH',
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Authorization": `Token ${data.token}`, "Authorization": `Token ${token}`,
}, },
body: JSON.stringify(data), body: JSON.stringify(data),
}); });