2022-09-23 14:38:55 +01:00
|
|
|
from fastapi import APIRouter
|
|
|
|
from fastapi.staticfiles import StaticFiles
|
|
|
|
|
|
|
|
from lnbits.db import Database
|
|
|
|
from lnbits.helpers import template_renderer
|
|
|
|
|
|
|
|
db = Database("ext_gerty")
|
|
|
|
|
2022-12-08 13:45:38 +00:00
|
|
|
gerty_static_files = [
|
|
|
|
{
|
|
|
|
"path": "/gerty/static",
|
|
|
|
"app": StaticFiles(packages=[("lnbits", "extensions/gerty/static")]),
|
|
|
|
"name": "gerty_static",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2022-09-23 14:38:55 +01:00
|
|
|
gerty_ext: APIRouter = APIRouter(prefix="/gerty", tags=["Gerty"])
|
|
|
|
|
2022-10-20 16:31:09 +01:00
|
|
|
|
2022-09-23 14:38:55 +01:00
|
|
|
def gerty_renderer():
|
|
|
|
return template_renderer(["lnbits/extensions/gerty/templates"])
|
|
|
|
|
2022-10-20 16:31:09 +01:00
|
|
|
|
2022-09-23 14:38:55 +01:00
|
|
|
from .views import * # noqa
|
|
|
|
from .views_api import * # noqa
|