From 0e8388859ad32c6c0a84db2aac933949706e39d9 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Mon, 27 Feb 2023 22:41:38 +0800 Subject: [PATCH] Add method fastapi_set_restore_operation --- main.py | 4 ++++ 1 file changed, 4 insertions(+) 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