Add restore method
This commit is contained in:
4
main.py
4
main.py
@@ -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/")
|
||||||
|
|||||||
Reference in New Issue
Block a user