diff --git a/main.py b/main.py index 92128c5..86b1896 100644 --- a/main.py +++ b/main.py @@ -196,6 +196,10 @@ async def fastapi_execute_compressed_batch_commands(network: str, req: Request)- @app.get("/getrestoreoperation/") async def fastapi_get_restore_operation(network : str) -> int: 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