Remove network
This commit is contained in:
4
main.py
4
main.py
@@ -97,10 +97,10 @@ async def fastapi_sync_with_server(network: str, operationid: int) -> ChangeSet:
|
|||||||
return sync_with_server(network, operationid)
|
return sync_with_server(network, operationid)
|
||||||
|
|
||||||
@app.post("/batch/")
|
@app.post("/batch/")
|
||||||
async def fastapi_execute_batch_commands(network: str, payload: dict = Body(...)) -> ChangeSet:
|
async def fastapi_execute_batch_commands(payload: dict = Body(...)) -> ChangeSet:
|
||||||
print(payload)
|
print(payload)
|
||||||
cs = ChangeSet({})
|
cs = ChangeSet({})
|
||||||
return api.execute_batch_commands(network, cs)
|
return api.execute_batch_commands("", cs)
|
||||||
|
|
||||||
# node
|
# node
|
||||||
@app.get("/getnodes/")
|
@app.get("/getnodes/")
|
||||||
|
|||||||
Reference in New Issue
Block a user