(
State(state): State<AppState>,
headers: HeaderMap,
)
| 686 | // --------------------------------------------------------------------------- |
| 687 | |
| 688 | async fn save_annotations( |
| 689 | State(state): State<AppState>, |
| 690 | headers: HeaderMap, |
| 691 | ) -> Result<Json<Value>, AppError> { |
| 692 | let project = require_project(&state, &headers)?; |
| 693 | annotations::save_annotations(&project.root, &project.file_tree, &project.symbol_table) |
| 694 | .map_err(AppError::Internal)?; |
| 695 | record_history(&state, session_id(&headers).as_deref(), "POST", "/annotations/save", "saved"); |
| 696 | Ok(Json(json!({ "ok": true }))) |
| 697 | } |
| 698 | |
| 699 | async fn load_annotations( |
| 700 | State(state): State<AppState>, |
nothing calls this directly
no test coverage detected