Add stable version of double

This commit is contained in:
Hepatica
2024-03-31 07:24:35 +02:00
parent b1a98f704b
commit a18eca3d8c
9 changed files with 225 additions and 51 deletions

View File

@@ -0,0 +1,22 @@
import { BackendApiUrl } from '@/properties/Сonfig.js';
export async function GetNewestDoubleGames() {
try {
const response = await fetch(`${BackendApiUrl}/GameDouble/GetNewestDoubleGames`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
redirect: 'follow'
})
if (!response.ok) {
console.log('Fetch error:', response.status)
}
return await response
}
catch (error) {
console.log('Fetch error')
}
}