modified code

This commit is contained in:
Matthis FAUVET 2024-06-21 18:08:16 +02:00
parent 75155a60bd
commit bd8eb9681f

View File

@ -73,8 +73,9 @@
}; };
}, },
execQuery(){ execQuery(){
console.log("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search);
return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search).then(response => { return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search).then(response => {
console.log(this.state.search);
console.log(response.json());
return response.json(); return response.json();
}); });
}, },