change get method

This commit is contained in:
Hepatica
2023-12-02 05:50:18 +01:00
parent 81672d7265
commit 38e9b34df6

View File

@@ -27,8 +27,8 @@ export async function GetCurrentMoney(authToken, searchToken) {
try {
const response = await fetch(`${BackendApiUrl}/Payment/GetCurrentMoney`, {
method: 'GET',
redirect: 'follow',
headers: {
"Content-Type": "application/json",
'AUTHTOKEN': authToken,
'SearchToken': searchToken
}
@@ -39,7 +39,7 @@ export async function GetCurrentMoney(authToken, searchToken) {
}
const data = await response.json();
console.log(data);
console.log(data);
return data;
} catch (error) {
console.error('There was a problem with the fetch operation:', error);