fix purge

check for missing protocol

fix request url default

more debub

fix lnbits root url

add documentation reference
This commit is contained in:
Tiago vasconcelos
2021-11-30 15:13:06 +00:00
parent b9bc36fabf
commit 290268885d
4 changed files with 11 additions and 17 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
from http import HTTPStatus
from urllib.parse import urlparse
from fastapi import Request
from fastapi.params import Depends
@@ -34,7 +35,8 @@ async def display(domain_id, request: Request):
await purge_addresses(domain_id)
wallet = await get_wallet(domain.wallet)
url = urlparse(str(request.url))
return lnaddress_renderer().TemplateResponse(
"lnaddress/display.html",
{
@@ -43,5 +45,6 @@ async def display(domain_id, request: Request):
"domain_domain": domain.domain,
"domain_cost": domain.cost,
"domain_wallet_inkey": wallet.inkey,
"root_url": f"{url.scheme}://{url.netloc}"
},
)