return text instead of json

This commit is contained in:
Tiago vasconcelos 2021-12-01 11:21:54 +00:00
parent 205c53d8e9
commit 2a9a0bd7aa

View File

@ -35,7 +35,7 @@ async def lnurl_response(username: str, domain: str, request: Request):
metadata=await address.lnurlpay_metadata(domain=domain),
)
print("RESP", resp.dict())
return resp.dict()
return resp
@lnaddress_ext.get("/lnurl/cb/{address_id}", name="lnaddress.lnurl_callback")
@ -82,4 +82,4 @@ async def lnurl_callback(address_id, amount: int = Query(...)):
resp = LnurlPayActionResponse(pr=r["payment_request"], routes=[])
return resp.dict()
return resp