Refine
This commit is contained in:
4
main.py
4
main.py
@@ -1391,9 +1391,9 @@ async def fastapi_set_option_properties(network: str, req: Request) -> ChangeSet
|
|||||||
async def fastapi_get_node_coord(network: str, node: str) -> dict[str, float] | None:
|
async def fastapi_get_node_coord(network: str, node: str) -> dict[str, float] | None:
|
||||||
return get_node_coord(network, node)
|
return get_node_coord(network, node)
|
||||||
|
|
||||||
@app.get("/getnetworkcoords/")
|
@app.get("/getnetworkcoords/", response_class = PlainTextResponse)
|
||||||
async def fastapi_get_network_coords(network: str) -> dict[str, dict[str, float]] | None:
|
async def fastapi_get_network_coords(network: str) -> dict[str, dict[str, float]] | None:
|
||||||
return get_network_coords(network)
|
return json.dumps(get_network_coords(network))
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
# vertex 25.[VERTICES]
|
# vertex 25.[VERTICES]
|
||||||
|
|||||||
Reference in New Issue
Block a user