fix(ui): use TokenService to fix 401 Unauthorized when calling absences API

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-24 11:57:03 +02:00
co-authored by Cursor
parent a0a5e15b04
commit 8204669ec9
2 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -96,7 +96,8 @@ class ApiConfig {
};
static Map<String, String> authHeaders(String token) => {
...headers,
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer $token',
};
}