Fix havesnapshot
This commit is contained in:
4
main.py
4
main.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user