allow custom path (#20)
* allow custom path
* minversion 0.11.0
---------
Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
parent
b6380dfa02
commit
0901e5eb15
2 changed files with 3 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import asyncio
|
||||
|
||||
from fastapi import APIRouter
|
||||
from starlette.staticfiles import StaticFiles
|
||||
|
||||
from lnbits.db import Database
|
||||
from lnbits.helpers import template_renderer
|
||||
|
|
@ -12,7 +11,6 @@ db = Database("ext_boltcards")
|
|||
boltcards_static_files = [
|
||||
{
|
||||
"path": "/boltcards/static",
|
||||
"app": StaticFiles(packages=[("lnbits", "extensions/boltcards/static")]),
|
||||
"name": "boltcards_static",
|
||||
}
|
||||
]
|
||||
|
|
@ -21,7 +19,7 @@ boltcards_ext: APIRouter = APIRouter(prefix="/boltcards", tags=["boltcards"])
|
|||
|
||||
|
||||
def boltcards_renderer():
|
||||
return template_renderer(["lnbits/extensions/boltcards/templates"])
|
||||
return template_renderer(["boltcards/templates"])
|
||||
|
||||
|
||||
from .lnurl import * # noqa: F401,F403
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue