diff --git a/lib/api.dart b/lib/api.dart index e77f68a..a91b188 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -251,7 +251,7 @@ class API { // /flow//end Future?> endFlow(String id, {List? produced}) async { - var resp = jsonDecode(await postRequest("$instance/$id/end", + var resp = jsonDecode(await postRequest("$instance/flow/$id/end", {"produced": produced?.map((x) => x.json()).toList()})); if (produced != null) {