(_req, res, params)
| 403 | * GET /annotations/:id - Get an annotation. |
| 404 | */ |
| 405 | const getAnnotationHandler: RouteHandler = async (_req, res, params) => { |
| 406 | const annotation = getAnnotation(params.id); |
| 407 | |
| 408 | if (!annotation) { |
| 409 | return sendError(res, 404, "Annotation not found"); |
| 410 | } |
| 411 | |
| 412 | sendJson(res, 200, annotation); |
| 413 | }; |
| 414 | |
| 415 | /** |
| 416 | * DELETE /annotations/:id - Delete an annotation. |
nothing calls this directly
no test coverage detected
searching dependent graphs…