This commit is contained in:
Swino4ka
2024-04-10 18:17:09 +02:00
parent 3215d994be
commit 73efda2f93
4 changed files with 48 additions and 15 deletions

View File

@@ -1,5 +1,24 @@
import { BackendApiUrl } from '@/properties/Сonfig.js';
export async function CrashHistory () {
const myHeaders = new Headers();
myHeaders.append("Cookie", "ARRAffinity=a6e48b9e9d2653435be7b61998d8624b44115214104213d6c8b8c526cc56dc70; ARRAffinitySameSite=a6e48b9e9d2653435be7b61998d8624b44115214104213d6c8b8c526cc56dc70");
const requestOptions = {
method: "POST",
headers: myHeaders,
redirect: "follow"
};
fetch("https://spsystemcore20231122004605.azurewebsites.net/api/GameCrash/GetCrashXHistory", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
}
export async function JoinCrashGame(userData, amount) {
const data = {
userCredentials: {