diff --git a/main.py b/main.py index 5428be9..b4ea8d3 100644 --- a/main.py +++ b/main.py @@ -76,6 +76,15 @@ async def fastapi_count_node(network: str): print(count) return count.value +@app.get("/getnodecoord/") +async def fastapi_get_node_coord(network: str, node: str): + pt = [] + value = get_node_coord(network, node).value + pt.append(value.x) + pt.append(value.y) + + return pt + @app.post("/setnodecoord/") async def fastapi_set_node_coord(network: str, node: str, x: int, y: int): set_node_coord(network, node, x, y)