remove lnaddress (#1525)

* remove lnaddress
This commit is contained in:
dni ⚡
2023-02-20 09:08:23 +01:00
committed by GitHub
parent 823956395b
commit 4211998959
17 changed files with 0 additions and 2052 deletions
-10
View File
@@ -1,11 +1,9 @@
import asyncio
import datetime
from http import HTTPStatus
from urllib.parse import urlparse
from fastapi import HTTPException
from loguru import logger
from starlette.requests import Request
from lnbits import bolt11
@@ -14,14 +12,6 @@ from ..crud import get_standalone_payment
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 # type: ignore
domain = urlparse(str(request.url)).netloc
return await lnurl_response(username, domain, request)
@core_app.get("/public/v1/payment/{payment_hash}")
async def api_public_payment_longpolling(payment_hash):
payment = await get_standalone_payment(payment_hash)