Dashboard root GET /api/dashboard returns 404 — route mismatch with frontend #24
Labels
No labels
blocked:gate-fetch
blocked:gate-fetch
blocked:gate-fetch
blocked:gate-fetch
blocked:lint-failed
blocked:needs-decision
blocked:no-changes
blocked:no-procedure
blocked:verify-failed
bug
feature-request
in-progress
needs-decompose
needs-triage
ops-task
quickfix
security/high
security/low
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/docker_backup#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
GET /api/dashboardreturns 404, but the working endpoint is atGET /api/dashboard/stats.Root Cause
In
backend/src/api/routes/dashboard.ts, routes are registered as:GET /dashboard/statsGET /dashboard/backup-trendGET /dashboard/target-usageThese get the
/apiprefix from Fastify's scoped registration, so the full paths are/api/dashboard/stats,/api/dashboard/backup-trend,/api/dashboard/target-usage. But there is no rootGET /api/dashboardendpoint.Evidence
Expected
Either
GET /api/dashboardshould return the stats summary, or the frontend should call/api/dashboard/stats.Severity
ORANGE High — If the frontend calls
/api/dashboardon load, the dashboard page will show no data.Closed by pipeline sweep — no code changes required (blocked:no-changes). Fixer now auto-closes this case going forward.