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]: