fixed small bugs, added a table to show the flotte
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
async function chargerFlotte() {
|
||||
const reponse = await fetch("./vehicules.json"); // on demande le fichier
|
||||
const reponse = await fetch("../vehicules.json"); // on demande le fichier
|
||||
const vehicules = await reponse.json(); // on le transforme en tableau JS
|
||||
console.log(vehicules); // pour vérifier
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user