Add method fastapi_set_restore_operation

This commit is contained in:
DingZQ
2023-02-27 22:41:38 +08:00
parent 87c9790d3b
commit 0e8388859a

View File

@@ -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