(supervisor: &State<Supervisor>, id: &str)
| 44 | |
| 45 | #[post("/start/<id>")] |
| 46 | async fn start(supervisor: &State<Supervisor>, id: &str) -> Json<Response<()>> { |
| 47 | to_json(supervisor.start(id)) |
| 48 | } |
| 49 | |
| 50 | #[post("/stop/<id>")] |
| 51 | async fn stop(supervisor: &State<Supervisor>, id: &str) -> Json<Response<()>> { |