mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-19 14:45:41 +01:00
revert to JSON return
This commit is contained in:
parent
55cb78710b
commit
3fd519e9dc
@ -38,7 +38,7 @@ async def lnurl_response(username: str, domain: str, request: Request):
|
||||
metadata=await address.lnurlpay_metadata(domain=domain),
|
||||
)
|
||||
print("RESP", resp.dict())
|
||||
return json.dumps(resp.dict())
|
||||
return resp.dict()
|
||||
|
||||
|
||||
@lnaddress_ext.get("/lnurl/cb/{address_id}", name="lnaddress.lnurl_callback", response_class=HTMLResponse)
|
||||
@ -85,4 +85,4 @@ async def lnurl_callback(address_id, amount: int = Query(...)):
|
||||
|
||||
resp = LnurlPayActionResponse(pr=r["payment_request"], routes=[])
|
||||
|
||||
return json.dumps(resp.dict())
|
||||
return resp.dict()
|
||||
|
Loading…
Reference in New Issue
Block a user