Add restore method
This commit is contained in:
4
main.py
4
main.py
@@ -155,6 +155,10 @@ async def fastapi_pick_snapeshot(network: str, snapshot: str)-> ChangeSet:
|
|||||||
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/")
|
||||||
async def fastapi_get_nodes(network: str) -> list[str]:
|
async def fastapi_get_nodes(network: str) -> list[str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user