(Path(id): Path<String>)
| 3413 | } |
| 3414 | |
| 3415 | async fn get_pty(Path(id): Path<String>) -> Result<Json<PtyInfo>> { |
| 3416 | let manager = get_pty_manager(); |
| 3417 | let session = manager |
| 3418 | .get_session(&id) |
| 3419 | .await |
| 3420 | .ok_or_else(|| ApiError::NotFound("PTY session not found".to_string()))?; |
| 3421 | Ok(Json(PtyInfo::from(session))) |
| 3422 | } |
| 3423 | |
| 3424 | #[derive(Debug, Deserialize)] |
| 3425 | pub struct UpdatePtyRequest { |
nothing calls this directly
no test coverage detected