fix lnaddress

This commit is contained in:
Tiago vasconcelos
2021-11-25 16:24:11 +00:00
parent 3b80ff5171
commit 1b29eb9f75
6 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ templates = Jinja2Templates(directory="templates")
async def index(request: Request, user: User = Depends(check_user_exists)):
return lnaddress_renderer().TemplateResponse("lnaddress/index.html", {"request": request, "user": user.dict()})
@lnaddress_ext.get("/{domain_id}")
@lnaddress_ext.get("/{domain_id}", response_class=HTMLResponse)
async def display(domain_id, request: Request):
domain = await get_domain(domain_id)
if not domain:
@@ -28,7 +28,7 @@ async def display(domain_id, request: Request):
status_code=HTTPStatus.NOT_FOUND, detail="Domain does not exist."
)
await purge_addresses(domain_id, response_class=HTMLResponse)
await purge_addresses(domain_id)
wallet = await get_wallet(domain.wallet)