(supervisor: &State<Supervisor>)
| 74 | |
| 75 | #[post("/clear")] |
| 76 | fn clear(supervisor: &State<Supervisor>) -> Json<Response<()>> { |
| 77 | to_json({ |
| 78 | supervisor.clear(); |
| 79 | Ok(()) |
| 80 | }) |
| 81 | } |
| 82 | |
| 83 | #[post("/shutdown")] |
| 84 | async fn shutdown(supervisor: &State<Supervisor>) -> Json<Response<()>> { |