mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-20 09:52:40 +02:00
fix lnbits root url
This commit is contained in:
@ -15,7 +15,6 @@ from .crud import get_address, get_address_by_username, get_domain
|
|||||||
|
|
||||||
|
|
||||||
async def lnurl_response(username: str, domain: str, request: Request):
|
async def lnurl_response(username: str, domain: str, request: Request):
|
||||||
print("LNU", username, domain)
|
|
||||||
address = await get_address_by_username(username, domain)
|
address = await get_address_by_username(username, domain)
|
||||||
|
|
||||||
if not address:
|
if not address:
|
||||||
@ -55,7 +54,7 @@ async def lnurl_callback(address_id, amount: int = Query(...)):
|
|||||||
if address.wallet_endpoint.endswith("/")
|
if address.wallet_endpoint.endswith("/")
|
||||||
else address.wallet_endpoint
|
else address.wallet_endpoint
|
||||||
)
|
)
|
||||||
print("BASE", base_url, address )
|
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
try:
|
try:
|
||||||
call = await client.post(
|
call = await client.post(
|
||||||
|
@ -372,8 +372,7 @@
|
|||||||
}
|
}
|
||||||
data.wallet_endpoint = data.wallet_endpoint ?? '{{ root_url }}'
|
data.wallet_endpoint = data.wallet_endpoint ?? '{{ root_url }}'
|
||||||
data.duration = parseInt(data.duration)
|
data.duration = parseInt(data.duration)
|
||||||
console.log('data', data)
|
|
||||||
|
|
||||||
axios
|
axios
|
||||||
.post('/lnaddress/api/v1/address/{{ domain_id }}', data)
|
.post('/lnaddress/api/v1/address/{{ domain_id }}', data)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
@ -489,19 +489,6 @@
|
|||||||
this.getDomains()
|
this.getDomains()
|
||||||
this.getAddresses()
|
this.getAddresses()
|
||||||
}
|
}
|
||||||
console.log('{{ request.url.path }}')
|
|
||||||
// var self = this
|
|
||||||
//
|
|
||||||
// // axios is available for making requests
|
|
||||||
// axios({
|
|
||||||
// method: 'GET',
|
|
||||||
// url: '/example/api/v1/tools',
|
|
||||||
// headers: {
|
|
||||||
// 'X-example-header': 'not-used'
|
|
||||||
// }
|
|
||||||
// }).then(function (response) {
|
|
||||||
// self.tools = response.data
|
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user