diff --git a/index.html b/index.html index 1d99938..32c1e2a 100644 --- a/index.html +++ b/index.html @@ -406,12 +406,15 @@ async function fetchGatusStatuses() { const res = await fetch(GATUS_URL); if (!res.ok) return {}; const data = await res.json(); + console.log('Gatus data:', JSON.stringify(data[0])); // Ajoute cette ligne const map = {}; - (data.results || []).forEach(ep => { + data.forEach(ep => { map[ep.key] = ep.results; }); + console.log('Status map keys:', Object.keys(map)); // Et celle-là return map; - } catch { + } catch (e) { + console.error('Gatus fetch error:', e); return {}; } }