Commit 66f7e4fb authored by Victor friboulet's avatar Victor friboulet
Browse files

🐛 retrait appostrophe dans la requete api

parent 05de20be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ class WeatherCard{
        try {
            // Utilisez "await" pour attendre la réponse de la requête
            const response = await fetch(
                `https://api.meteo-concept.com/api/forecast/daily/${jour}'?token=${Token}&insee=${this.CodeInsee}`
                `https://api.meteo-concept.com/api/forecast/daily/${jour}?token=${Token}&insee=${this.CodeInsee}`
            );
            if (!response.ok) {
                throw new Error(`Erreur de requête: ${response.status}`);