lnbits-legend/lnbits/extensions/lndhub/__init__.py

28 lines
652 B
Python
Raw Normal View History

2021-10-18 10:58:09 +01:00
from fastapi import APIRouter
2022-12-31 01:46:55 +00:00
from starlette.staticfiles import StaticFiles
2021-10-18 10:58:09 +01:00
2021-10-13 16:47:24 +01:00
from lnbits.db import Database
from lnbits.helpers import template_renderer
db = Database("ext_lndhub")
lndhub_ext: APIRouter = APIRouter(prefix="/lndhub", tags=["lndhub"])
2022-12-31 01:46:55 +00:00
lndhub_static_files = [
{
"path": "/lndhub/static",
"app": StaticFiles(directory="lnbits/extensions/lndhub/static"),
"name": "lndhub_static",
}
]
2021-10-13 16:47:24 +01:00
def lndhub_renderer():
2021-10-17 18:33:29 +01:00
return template_renderer(["lnbits/extensions/lndhub/templates"])
2021-10-13 16:47:24 +01:00
from .decorators import * # noqa
2021-10-18 10:58:09 +01:00
from .utils import * # noqa
from .views import * # noqa
from .views_api import * # noqa