diff --git a/main.py b/main.py index 9864636..b41a073 100644 --- a/main.py +++ b/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)