Update index.html

Ryan Danenberg committed commitba5b4fde8b44038a671a5f3a75c1d878925eddd3 Browse files
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) => {