MCPcopy Create free account
hub / github.com/JaredStewart/coderlm / save_annotations

Function save_annotations

server/src/server/routes.rs:688–697  ·  view source on GitHub ↗
(
    State(state): State<AppState>,
    headers: HeaderMap,
)

Source from the content-addressed store, hash-verified

686// ---------------------------------------------------------------------------
687
688async 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
699async fn load_annotations(
700 State(state): State<AppState>,

Callers

nothing calls this directly

Calls 3

require_projectFunction · 0.85
record_historyFunction · 0.85
session_idFunction · 0.85

Tested by

no test coverage detected