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