temporary hard link for testing
This commit is contained in:
parent
afd1cece0b
commit
58737b58e7
2 changed files with 11 additions and 11 deletions
|
|
@ -20,8 +20,8 @@ lnurlp_static_files = [
|
|||
|
||||
lnurlp_redirect_paths = [
|
||||
{
|
||||
"from_path": "/.well-known/lnurlp/",
|
||||
"redirect_to_path": "/api/v1/well-known/{username}",
|
||||
"from_path": "/.well-known/lnurlp/two",
|
||||
"redirect_to_path": "/api/v1/well-known/two",
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
|||
18
views_api.py
18
views_api.py
|
|
@ -22,16 +22,16 @@ 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")
|
||||
# domain = urlparse(str(request.url)).netloc
|
||||
# return await lnurl_response(username, domain, request)
|
||||
# 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")
|
||||
domain = urlparse(str(request.url)).netloc
|
||||
return await lnurl_response(username, domain, request)
|
||||
|
||||
|
||||
@lnurlp_ext.get("/api/v1/currencies")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue