diff --git a/services/api.ts b/services/api.ts index abd41fb..6fdaa15 100644 --- a/services/api.ts +++ b/services/api.ts @@ -15,7 +15,9 @@ class ApiService { } async getState(): Promise { - const res = await fetch(`${API_BASE}/state`); + const res = await fetch(`${API_BASE}/state`, { + headers: this.getHeaders() + }); if (!res.ok) throw new Error(`HTTP Error ${res.status}`); return res.json(); } @@ -190,3 +192,4 @@ class ApiService { } export const api = new ApiService(); +