allow custom path (#19)
* allow custom path
* bump
---------
Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
parent
049826071c
commit
67933b546f
2 changed files with 3 additions and 4 deletions
|
|
@ -2,7 +2,6 @@ import asyncio
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
from fastapi.staticfiles import StaticFiles
|
|
||||||
|
|
||||||
from lnbits.db import Database
|
from lnbits.db import Database
|
||||||
from lnbits.helpers import template_renderer
|
from lnbits.helpers import template_renderer
|
||||||
|
|
@ -35,7 +34,6 @@ db = Database("ext_lnurlp")
|
||||||
lnurlp_static_files = [
|
lnurlp_static_files = [
|
||||||
{
|
{
|
||||||
"path": "/lnurlp/static",
|
"path": "/lnurlp/static",
|
||||||
"app": StaticFiles(packages=[("lnbits", "extensions/lnurlp/static")]),
|
|
||||||
"name": "lnurlp_static",
|
"name": "lnurlp_static",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
@ -53,7 +51,7 @@ lnurlp_ext: APIRouter = APIRouter(prefix="/lnurlp", tags=["lnurlp"])
|
||||||
|
|
||||||
|
|
||||||
def lnurlp_renderer():
|
def lnurlp_renderer():
|
||||||
return template_renderer(["lnbits/extensions/lnurlp/templates"])
|
return template_renderer(["lnurlp/templates"])
|
||||||
|
|
||||||
|
|
||||||
from .lnurl import * # noqa: F401,F403
|
from .lnurl import * # noqa: F401,F403
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,6 @@
|
||||||
"name": "LNURLp",
|
"name": "LNURLp",
|
||||||
"short_description": "Make reusable LNURL pay links",
|
"short_description": "Make reusable LNURL pay links",
|
||||||
"tile": "/lnurlp/static/image/lnurl-pay.png",
|
"tile": "/lnurlp/static/image/lnurl-pay.png",
|
||||||
"contributors": ["arcbtc", "eillarra", "fiatjaf", "callebtc"]
|
"contributors": ["arcbtc", "eillarra", "fiatjaf", "callebtc"],
|
||||||
|
"min_lnbits_version": "0.11.0"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue