mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-21 22:14:57 +02:00
fix lnbits root url
This commit is contained in:
parent
d6f3c2f9c4
commit
ccd3a12ed3
@ -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):
|
||||
print("LNU", username, domain)
|
||||
address = await get_address_by_username(username, domain)
|
||||
|
||||
if not address:
|
||||
@ -55,7 +54,7 @@ async def lnurl_callback(address_id, amount: int = Query(...)):
|
||||
if address.wallet_endpoint.endswith("/")
|
||||
else address.wallet_endpoint
|
||||
)
|
||||
print("BASE", base_url, address )
|
||||
|
||||
async with httpx.AsyncClient() as client:
|
||||
try:
|
||||
call = await client.post(
|
||||
|
@ -372,8 +372,7 @@
|
||||
}
|
||||
data.wallet_endpoint = data.wallet_endpoint ?? '{{ root_url }}'
|
||||
data.duration = parseInt(data.duration)
|
||||
console.log('data', data)
|
||||
|
||||
|
||||
axios
|
||||
.post('/lnaddress/api/v1/address/{{ domain_id }}', data)
|
||||
.then(response => {
|
||||
|
@ -489,19 +489,6 @@
|
||||
this.getDomains()
|
||||
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user