(supervisor: &State<Supervisor>, config: Json<ProcessConfig>)
| 39 | |
| 40 | #[post("/deploy", data = "<config>")] |
| 41 | async fn deploy(supervisor: &State<Supervisor>, config: Json<ProcessConfig>) -> Json<Response<()>> { |
| 42 | to_json(supervisor.deploy(config.into_inner())) |
| 43 | } |
| 44 | |
| 45 | #[post("/start/<id>")] |
| 46 | async fn start(supervisor: &State<Supervisor>, id: &str) -> Json<Response<()>> { |
nothing calls this directly
no test coverage detected