fix lnaddress
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user