pub async fn head_snapshot( state: AppState, ref_id: Uuid, ) -> Result<Value, AppError>
Gets the content of the head snapshot for a document ref.