Refine json for method getlinknodes

This commit is contained in:
DingZQ
2022-09-03 19:28:38 +08:00
parent c70d798ee0
commit cd8585ceca

View File

@@ -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/")