diff --git a/onzer.riot b/onzer.riot index f3185c2..22135d8 100644 --- a/onzer.riot +++ b/onzer.riot @@ -71,13 +71,12 @@ async list(){ let data = await this.fetchData(); this.state = { - placeholder: "Rechercher dans les songs", items: data.results }; this.update(); }, fetchData(){ - return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/songs").then(response => { + return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/"+this.state.search).then(response => { return response.json(); }); },