(supervisor: &State<Supervisor>, id: &str)
| 54 | |
| 55 | #[delete("/remove/<id>")] |
| 56 | async fn remove(supervisor: &State<Supervisor>, id: &str) -> Json<Response<()>> { |
| 57 | to_json(supervisor.remove(id)) |
| 58 | } |
| 59 | |
| 60 | #[get("/list")] |
| 61 | fn list(supervisor: &State<Supervisor>) -> Json<Response<Vec<ProcessInfo>>> { |