Padel-Tournaments-System/frontend/_main page/pojedynczy_turniej/app.js

11 lines
301 B
JavaScript
Raw Normal View History

2022-06-10 15:33:05 +02:00
function showTournaments() {
let url = 'https://dragonmaster.pl/inz/tournaments';
try {
let res = await fetch(url);
return await res.json();
} catch (error) {
console.log(error);
}
let tournaments = await showTournaments();
console.log(tournaments[1])
}