BUG: GET /upload route missing — upload.js has no list endpoint, frontend may 404 #68

Closed
opened 2026-05-25 03:51:22 -04:00 by zgaetano · 1 comment
Owner

Done — GET /api/v1/upload exists at services/mam-api/src/routes/upload.js:142 and returns in-progress uploads.

Done — `GET /api/v1/upload` exists at `services/mam-api/src/routes/upload.js:142` and returns in-progress uploads.
Author
Owner

Fix Plan — #68 GET /upload route missing

Root cause: upload.js defines POST routes but no GET / route. Frontend calling GET /api/v1/upload gets 404.

Fix — add list endpoint:

// upload.js
router.get("/", async (req, res) => {
  const { rows } = await pool.query(
    `SELECT * FROM assets WHERE status = 'ingesting'
     ORDER BY created_at DESC LIMIT 50`
  );
  res.json(rows);
});

Files: src/routes/upload.js
Effort: ~30min
**Priority: P2 — missing endpoint

## Fix Plan — #68 GET /upload route missing **Root cause:** upload.js defines POST routes but no GET / route. Frontend calling GET /api/v1/upload gets 404. **Fix — add list endpoint:** ```js // upload.js router.get("/", async (req, res) => { const { rows } = await pool.query( `SELECT * FROM assets WHERE status = 'ingesting' ORDER BY created_at DESC LIMIT 50` ); res.json(rows); }); ``` **Files:** src/routes/upload.js **Effort:** ~30min **Priority: P2 — missing endpoint
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: WildDragonLLC/dragonflight#68
No description provided.