Add sync_with_server

This commit is contained in:
DingZQ
2022-10-02 22:52:38 +08:00
parent fdf02979ee
commit f8c5bb85b3

View File

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