(_req, res, params)
| 416 | * DELETE /annotations/:id - Delete an annotation. |
| 417 | */ |
| 418 | const deleteAnnotationHandler: RouteHandler = async (_req, res, params) => { |
| 419 | const annotation = deleteAnnotation(params.id); |
| 420 | |
| 421 | if (!annotation) { |
| 422 | return sendError(res, 404, "Annotation not found"); |
| 423 | } |
| 424 | |
| 425 | sendJson(res, 200, { deleted: true, annotationId: params.id }); |
| 426 | }; |
| 427 | |
| 428 | /** |
| 429 | * GET /sessions/:id/pending - Get pending annotations for a session. |
nothing calls this directly
no test coverage detected
searching dependent graphs…