mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-18 19:41:11 +02:00
again
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import asyncio
|
||||
import datetime
|
||||
from http import HTTPStatus
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from fastapi import HTTPException
|
||||
from starlette.requests import Request
|
||||
@@ -15,8 +16,9 @@ from ..tasks import api_invoice_listeners
|
||||
@core_app.get("/.well-known/lnurlp/{username}")
|
||||
async def lnaddress(username: str, request: Request):
|
||||
from lnbits.extensions.lnaddress.lnurl import lnurl_response
|
||||
domain = request.client.host
|
||||
print("client", domain)
|
||||
domain = request.client
|
||||
root_url = urlparse(str(request.url)).netloc
|
||||
print("client", root_url, request.client)
|
||||
return await lnurl_response(username, domain, request)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user