(_req, res)
| 437 | * GET /pending - Get all pending annotations across all sessions. |
| 438 | */ |
| 439 | const getAllPendingHandler: RouteHandler = async (_req, res) => { |
| 440 | const sessions = listSessions(); |
| 441 | const allPending = sessions.flatMap((session) => getPendingAnnotations(session.id)); |
| 442 | sendJson(res, 200, { count: allPending.length, annotations: allPending }); |
| 443 | }; |
| 444 | |
| 445 | /** |
| 446 | * POST /sessions/:id/action - Request agent action on annotations. |
nothing calls this directly
no test coverage detected
searching dependent graphs…