diff --git a/main.py b/main.py index ff928b6..aca25e1 100644 --- a/main.py +++ b/main.py @@ -154,6 +154,10 @@ async def fastapi_pick_snapeshot(network: str, snapshot: str)-> ChangeSet: @app.post("/pickoperation/") async def fastapi_pick_operation(network: str, operation: int) -> ChangeSet: return pick_operation(network, operation) + +@app.get("/getrestoreopeation/") +async def fastapi_get_restore_operation(network : str) -> int: + return get_restore_operation(network) # node @app.get("/getnodes/")