service call service

This commit is contained in:
kittapath 2024-08-15 13:28:28 +07:00
parent 161595782d
commit fdf4284c3c
2 changed files with 14 additions and 5 deletions

View file

@ -23,6 +23,7 @@ class CallAPI {
headers: {
Authorization: `${token}`,
"Content-Type": "application/json",
api_key: process.env.API_KEY,
},
});
return response.data.result;
@ -39,6 +40,7 @@ class CallAPI {
headers: {
Authorization: `${token}`,
"Content-Type": "application/json",
api_key: process.env.API_KEY,
},
});
return response.data.result;