()
| 3355 | } |
| 3356 | |
| 3357 | fn pty_routes() -> Router<Arc<ServerState>> { |
| 3358 | Router::new() |
| 3359 | .route("/", get(list_pty).post(create_pty)) |
| 3360 | .route("/{id}", get(get_pty).put(update_pty).delete(delete_pty)) |
| 3361 | .route("/{id}/connect", get(pty_connect)) |
| 3362 | } |
| 3363 | |
| 3364 | #[derive(Debug, Serialize)] |
| 3365 | pub struct PtyInfo { |