update
This commit is contained in:
parent
9135c2f913
commit
132aeee971
2 changed files with 8 additions and 2 deletions
|
@ -143,7 +143,7 @@ pub async fn create_flow_route(
|
|||
}
|
||||
|
||||
#[get("/flow/<id>")]
|
||||
pub async fn flow_api_route(id: &str, flows: &State<JSONStore<FlowInfo>>) -> FallibleApiResponse {
|
||||
pub async fn flow_api_route(id: &str) -> FallibleApiResponse {
|
||||
let flow = Flow::get(id)
|
||||
.await
|
||||
.ok_or_else(|| api_error("No such flow"))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue