From 1e41be4ff9e4b1ec1aab6e8b4e8c3574e90c7960 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Thu, 27 Oct 2022 07:31:25 +0800 Subject: [PATCH] Fix havesnapshot --- main.py | 4 ++++ 1 file changed, 4 insertions(+) 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)