Refine json for method getlinknodes
This commit is contained in:
4
main.py
4
main.py
@@ -148,8 +148,8 @@ async def fastapi_get_link_nodes(network: str, link: str):
|
||||
return JSONResponse(
|
||||
status_code = status.HTTP_200_OK,
|
||||
content={
|
||||
'start': result.value.from_node,
|
||||
'end': result.value.to_node
|
||||
'start': str(result.value.from_node, 'utf-8'),
|
||||
'end': str(result.value.to_node, 'utf-8')
|
||||
})
|
||||
|
||||
@app.post("/addlink/")
|
||||
|
||||
Reference in New Issue
Block a user