Add sync_with_server
This commit is contained in:
4
main.py
4
main.py
@@ -94,6 +94,10 @@ async def fastapi_redo(network: str):
|
|||||||
async def fastapi_get_current_operaiton_id(network: str) -> int:
|
async def fastapi_get_current_operaiton_id(network: str) -> int:
|
||||||
return get_current_operation(network)
|
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
|
# node
|
||||||
@app.get("/getnodes/")
|
@app.get("/getnodes/")
|
||||||
async def fastapi_get_nodes(network: str) -> list[str]:
|
async def fastapi_get_nodes(network: str) -> list[str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user