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 fastapi import APIRouter
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
from lnbits.db import Database
|
||||
from lnbits.helpers import template_renderer
|
||||
|
|
@ -35,7 +34,6 @@ db = Database("ext_lnurlp")
|
|||
lnurlp_static_files = [
|
||||
{
|
||||
"path": "/lnurlp/static",
|
||||
"app": StaticFiles(packages=[("lnbits", "extensions/lnurlp/static")]),
|
||||
"name": "lnurlp_static",
|
||||
}
|
||||
]
|
||||
|
|
@ -53,7 +51,7 @@ lnurlp_ext: APIRouter = APIRouter(prefix="/lnurlp", tags=["lnurlp"])
|
|||
|
||||
|
||||
def lnurlp_renderer():
|
||||
return template_renderer(["lnbits/extensions/lnurlp/templates"])
|
||||
return template_renderer(["lnurlp/templates"])
|
||||
|
||||
|
||||
from .lnurl import * # noqa: F401,F403
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue