call service

This commit is contained in:
Kittapath 2024-04-19 09:29:21 +07:00
parent d606ec966c
commit a8a227e062

View file

@ -21,7 +21,7 @@ class CallAPI {
try {
const response = await axios.get(url, {
headers: {
Authorization: `Bearer ${token}`,
Authorization: `${token}`,
"Content-Type": "application/json",
},
});
@ -37,7 +37,7 @@ class CallAPI {
try {
const response = await axios.post(url, sendData, {
headers: {
Authorization: `Bearer ${token}`,
Authorization: `${token}`,
"Content-Type": "application/json",
},
});