Add restore method

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

View File

@@ -155,6 +155,10 @@ async def fastapi_pick_snapeshot(network: str, snapshot: str)-> ChangeSet:
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/")
async def fastapi_get_nodes(network: str) -> list[str]: