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(
|
return JSONResponse(
|
||||||
status_code = status.HTTP_200_OK,
|
status_code = status.HTTP_200_OK,
|
||||||
content={
|
content={
|
||||||
'start': result.value.from_node,
|
'start': str(result.value.from_node, 'utf-8'),
|
||||||
'end': result.value.to_node
|
'end': str(result.value.to_node, 'utf-8')
|
||||||
})
|
})
|
||||||
|
|
||||||
@app.post("/addlink/")
|
@app.post("/addlink/")
|
||||||
|
|||||||
Reference in New Issue
Block a user