GET /api/apps and /api/version return 404 — routes not registering #46

Closed
opened 2026-05-14 15:36:13 +00:00 by Mark · 0 comments
Owner

Bug

GET /api/apps and GET /api/version both return 404 Not Found despite route files (appRoutes.js, systemRoutes.js) defining these endpoints.

Root Cause

The route registration functions (registerAppRoutes, registerSystemRoutes) exported from the route files don't appear to be called in the main createServer path in server.js. Only the health endpoint (defined directly in systemRoutes.js) works, suggesting it's registered via a different code path.

Evidence

  • GET /health → 200 OK (works)
  • GET /api/apps → 404 Not Found (broken)
  • GET /api/version → 404 Not Found (broken)

Impact

API server starts but none of the management endpoints respond. The node_hub is non-functional as an API.

## Bug GET `/api/apps` and GET `/api/version` both return `404 Not Found` despite route files (`appRoutes.js`, `systemRoutes.js`) defining these endpoints. ## Root Cause The route registration functions (`registerAppRoutes`, `registerSystemRoutes`) exported from the route files don't appear to be called in the main `createServer` path in `server.js`. Only the health endpoint (defined directly in `systemRoutes.js`) works, suggesting it's registered via a different code path. ## Evidence - `GET /health` → `200 OK` (works) - `GET /api/apps` → `404 Not Found` (broken) - `GET /api/version` → `404 Not Found` (broken) ## Impact API server starts but none of the management endpoints respond. The node_hub is non-functional as an API.
Mark closed this issue 2026-05-15 00:00:10 +00:00
Sign in to join this conversation.
No description provided.