Add restore method

This commit is contained in:
DingZQ
2022-11-26 23:43:06 +08:00
parent 832e06108b
commit 251d544978

View File

@@ -154,6 +154,10 @@ async def fastapi_pick_snapeshot(network: str, snapshot: str)-> ChangeSet:
@app.post("/pickoperation/") @app.post("/pickoperation/")
async def fastapi_pick_operation(network: str, operation: int) -> ChangeSet: async def fastapi_pick_operation(network: str, operation: int) -> ChangeSet:
return pick_operation(network, operation) return pick_operation(network, operation)
@app.get("/getrestoreopeation/")
async def fastapi_get_restore_operation(network : str) -> int:
return get_restore_operation(network)
# node # node
@app.get("/getnodes/") @app.get("/getnodes/")