allow custom path (#19)
Some checks failed
/ release (push) Has been cancelled
/ pullrequest (push) Has been cancelled

* allow custom path
* bump

---------

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
Tiago Vasconcelos 2023-09-26 12:27:45 +01:00 committed by GitHub
commit 67933b546f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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"
} }