diff --git a/main.py b/main.py index afd490f..5e921dc 100644 --- a/main.py +++ b/main.py @@ -103,6 +103,14 @@ async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet cs: ChangeSet = ChangeSet() cs.operations = jo_root['operations'] return execute_batch_commands(network, cs) + +@app.post("/tacksnapshot/") +async def fastapi_take_snapeshot(network: str, snapshot: str)-> int: + return take_snapshot(network, snapshot) + +@app.post("/picksnapshot/") +async def fastapi_pick_snapeshot(network: str, snapshot: str)-> ChangeSet: + return pick_snapshot(network, snapshot) # node @app.get("/getnodes/")