Update index.html
1 file changed+4−4
index.html+4−4View file
| @@ -1454,10 +1454,10 @@ | ||
| async function tryKallaxSync() { | ||
| try { | ||
| const [projRes, assignRes, tsRes, daysRes] = await Promise.allSettled([ | ||
| - apiFetch('/api/projects').then(r => r.ok ? r.json() : null), | ||
| - apiFetch('/api/assignments').then(r => r.ok ? r.json() : null), | ||
| - apiFetch('/api/timesheets').then(r => r.ok ? r.json() : null), | ||
| - apiFetch('/api/timesheet_days').then(r => r.ok ? r.json() : null) | ||
| + apiFetch(`/api/p/${PROJECT_ID}/tables/projects/rows`).then(r => r.ok ? r.json() : null), | ||
| + apiFetch(`/api/p/${PROJECT_ID}/tables/assignments/rows`).then(r => r.ok ? r.json() : null), | ||
| + apiFetch(`/api/p/${PROJECT_ID}/tables/timesheets/rows`).then(r => r.ok ? r.json() : null), | ||
| + apiFetch(`/api/p/${PROJECT_ID}/tables/timesheet_days/rows`).then(r => r.ok ? r.json() : null) | ||
| ]); | ||
| const getItems = (res) => { | ||