Files
BanGUI/Docs/Tasks.md
Lukas 401a5d4169 Fix double /api prefix in fetchAccesses by using ENDPOINTS constant
fetchAccesses was passing the hardcoded absolute path /api/dashboard/accesses
to get(), which prepends BASE_URL (/api), producing /api/api/dashboard/accesses.
Added ENDPOINTS.dashboardAccesses and switched to use it, consistent with every
other function in dashboard.ts.
2026-03-01 21:05:30 +01:00

956 B

BanGUI — Task List

This document breaks the entire BanGUI project into development stages, ordered so that each stage builds on the previous one. Every task is described in prose with enough detail for a developer to begin work. References point to the relevant documentation.


FIXED — Access list 404: /api/api/dashboard/accesses double prefix (2026-03-01)

Root cause: fetchAccesses in src/api/dashboard.ts passed the hardcoded absolute path /api/dashboard/accesses directly to get(). Because get() prepends BASE_URL (/api), the resulting URL became /api/api/dashboard/accesses, which has no backend route.

Fix: Added dashboardAccesses: "/dashboard/accesses" to ENDPOINTS in src/api/endpoints.ts and changed fetchAccesses to use ENDPOINTS.dashboardAccesses — consistent with every other function in the same file.

Commit: Fix double /api prefix in fetchAccesses by using ENDPOINTS constant