2022-06-13 21:08:06 +02:00
|
|
|
from fastapi import APIRouter
|
2022-08-14 23:52:55 +02:00
|
|
|
from starlette.staticfiles import StaticFiles
|
2022-06-13 21:08:06 +02:00
|
|
|
|
|
|
|
from lnbits.db import Database
|
|
|
|
from lnbits.helpers import template_renderer
|
|
|
|
|
|
|
|
db = Database("ext_boltcards")
|
|
|
|
|
2022-08-14 23:52:55 +02:00
|
|
|
boltcards_static_files = [
|
|
|
|
{
|
|
|
|
"path": "/boltcards/static",
|
|
|
|
"app": StaticFiles(packages=[("lnbits", "extensions/boltcards/static")]),
|
|
|
|
"name": "boltcards_static",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
2022-07-15 16:43:06 +02:00
|
|
|
boltcards_ext: APIRouter = APIRouter(prefix="/boltcards", tags=["boltcards"])
|
2022-06-13 21:08:06 +02:00
|
|
|
|
2022-08-29 14:18:18 +01:00
|
|
|
|
2022-06-13 21:08:06 +02:00
|
|
|
def boltcards_renderer():
|
|
|
|
return template_renderer(["lnbits/extensions/boltcards/templates"])
|
|
|
|
|
2022-08-29 14:18:18 +01:00
|
|
|
|
2022-08-22 22:33:20 +01:00
|
|
|
from .lnurl import * # noqa
|
2022-08-27 16:37:31 +01:00
|
|
|
from .tasks import * # noqa
|
2022-06-13 21:08:06 +02:00
|
|
|
from .views import * # noqa
|
|
|
|
from .views_api import * # noqa
|