From f8c5bb85b347b247dbc1ac1a18c9e6249f617b27 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sun, 2 Oct 2022 22:52:38 +0800 Subject: [PATCH] Add sync_with_server --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 6e91297..a0915b2 100644 --- a/main.py +++ b/main.py @@ -94,6 +94,10 @@ async def fastapi_redo(network: str): async def fastapi_get_current_operaiton_id(network: str) -> int: return get_current_operation(network) +@app.get("/syncwithserver/") +def fastapi_sync_with_server(network: str, operationId: int) -> ChangeSet: + return sync_with_server(network, operationId) + # node @app.get("/getnodes/") async def fastapi_get_nodes(network: str) -> list[str]: