mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-04 04:20:47 +02:00
Update views_api.py
This commit is contained in:
@ -110,7 +110,9 @@ def api_lnurlwithdraw(rand):
|
||||
|
||||
header = {"Content-Type": "application/json", "Grpc-Metadata-macaroon": str(user_fau[0][4])}
|
||||
data = {"payment_request": pr}
|
||||
r = requests.post(url="https://lnbits.com/api/v1/channels/transactions", headers=header, data=json.dumps(data))
|
||||
#this works locally but not being served over host, bug, needs fixing
|
||||
#r = requests.post(url="https://lnbits.com/api/v1/channels/transactions", headers=header, data=json.dumps(data))
|
||||
r = requests.post(url=url_for("api_transactions", _external=True), headers=header, data=json.dumps(data))
|
||||
r_json = r.json()
|
||||
|
||||
if "ERROR" in r_json:
|
||||
|
Reference in New Issue
Block a user