Add method fastapi_set_restore_operation
This commit is contained in:
4
main.py
4
main.py
@@ -196,6 +196,10 @@ async def fastapi_execute_compressed_batch_commands(network: str, req: Request)-
|
|||||||
@app.get("/getrestoreoperation/")
|
@app.get("/getrestoreoperation/")
|
||||||
async def fastapi_get_restore_operation(network : str) -> int:
|
async def fastapi_get_restore_operation(network : str) -> int:
|
||||||
return get_restore_operation(network)
|
return get_restore_operation(network)
|
||||||
|
|
||||||
|
@app.post("/setrestoreoperation/")
|
||||||
|
async def fastapi_set_restore_operation(network: str, operation: int) -> None:
|
||||||
|
return set_restore_operation(network, operation)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
# type
|
# type
|
||||||
|
|||||||
Reference in New Issue
Block a user