Fix havesnapshot

This commit is contained in:
DingZQ
2022-10-27 07:31:25 +08:00
parent f68ff0f312
commit 1e41be4ff9

View File

@@ -111,6 +111,10 @@ async def fastapi_execute_compressed_batch_commands(network: str, req: Request)-
cs.operations = jo_root['operations']
return execute_batch_command(network, cs)
@app.get("/havesnapshot/")
async def fastapi_has_snapeshot(network: str, snapshot: str)-> int:
return have_snapshot(network, snapshot)
@app.post("/takesnapshot/")
async def fastapi_take_snapeshot(network: str, snapshot: str)-> int:
return take_snapshot(network, snapshot)