fix lnbits root url

This commit is contained in:
Tiago vasconcelos 2021-11-30 14:58:03 +00:00
parent d6f3c2f9c4
commit ccd3a12ed3
3 changed files with 2 additions and 17 deletions

View File

@ -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(

View File

@ -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 => {

View File

@ -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>