fix redirect paths
This commit is contained in:
parent
017cb7353f
commit
8082913eba
2 changed files with 3 additions and 8 deletions
|
|
@ -22,14 +22,9 @@ from .crud import (
|
|||
from .models import CreatePayLinkData
|
||||
from .lnurl import lnurl_response
|
||||
|
||||
# @lnurlp_ext.get("/api/v1/well-known/{username}")
|
||||
# async def lnaddress(username: str):
|
||||
# msg = "calling /api/v1/well-known" + username
|
||||
# return msg
|
||||
|
||||
@lnurlp_ext.get("/api/v1/well-known/{username}")
|
||||
async def lnaddress(username: str, request: Request):
|
||||
print("calling /api/v1/well-known")
|
||||
print("calling /api/v1/well-known/" + username)
|
||||
domain = urlparse(str(request.url)).netloc
|
||||
return await lnurl_response(username, domain, request)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue