(_req, res, params)
| 347 | * GET /sessions/:id - Get a session with annotations. |
| 348 | */ |
| 349 | const getSessionHandler: RouteHandler = async (_req, res, params) => { |
| 350 | const session = getSessionWithAnnotations(params.id); |
| 351 | |
| 352 | if (!session) { |
| 353 | return sendError(res, 404, "Session not found"); |
| 354 | } |
| 355 | |
| 356 | sendJson(res, 200, session); |
| 357 | }; |
| 358 | |
| 359 | /** |
| 360 | * POST /sessions/:id/annotations - Add annotation to session. |
nothing calls this directly
no test coverage detected
searching dependent graphs…