()
| 3391 | } |
| 3392 | |
| 3393 | async fn list_pty() -> Json<Vec<PtyInfo>> { |
| 3394 | let manager = get_pty_manager(); |
| 3395 | let sessions = manager.list_sessions().await; |
| 3396 | Json(sessions.into_iter().map(PtyInfo::from).collect()) |
| 3397 | } |
| 3398 | |
| 3399 | #[derive(Debug, Deserialize)] |
| 3400 | pub struct CreatePtyRequest { |
nothing calls this directly
no test coverage detected