Function
get_session_children
(
State(state): State<Arc<ServerState>>,
Path(id): Path<String>,
)
Source from the content-addressed store, hash-verified
| 441 | } |
| 442 | |
| 443 | async fn get_session_children( |
| 444 | State(state): State<Arc<ServerState>>, |
| 445 | Path(id): Path<String>, |
| 446 | ) -> Result<Json<Vec<SessionInfo>>> { |
| 447 | let manager = state.sessions.lock().await; |
| 448 | let children = manager.children(&id); |
| 449 | Ok(Json(children.into_iter().map(session_to_info).collect())) |
| 450 | } |
| 451 | |
| 452 | #[derive(Debug, Serialize)] |
| 453 | pub struct TodoInfo { |
Callers
nothing calls this directly
Tested by
no test coverage detected