modified code

This commit is contained in:
Matthis FAUVET 2024-06-21 16:35:51 +02:00
parent b13e46ca00
commit 8062ba6c59

View File

@ -78,7 +78,7 @@
this.update();*/ this.update();*/
}, },
fetchData(){ fetchData(){
return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search+"").then(response => { return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/songs").then(response => {
return response.json(); return response.json();
}); });
}, },