This commit is contained in:
DingZQ
2022-10-15 17:36:47 +08:00
parent a8e1e7a1a0
commit a31cf07262

View File

@@ -97,10 +97,8 @@ async def fastapi_sync_with_server(network: str, operationid: int) -> ChangeSet:
return sync_with_server(network, operationid)
@app.post("/batch/")
async def fastapi_execute_batch_commands(payload: dict = Body(...)) -> ChangeSet:
async def fastapi_execute_batch_commands(network: str, payload: dict = Body(...)) -> ChangeSet:
print(payload)
cs = ChangeSet({})
return api.execute_batch_commands("", cs)
# node
@app.get("/getnodes/")