mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 15:10:41 +01:00
28 lines
600 B
Python
28 lines
600 B
Python
import asyncio
|
|
|
|
from fastapi import APIRouter
|
|
from fastapi.staticfiles import StaticFiles
|
|
|
|
from lnbits.db import Database
|
|
from lnbits.helpers import template_renderer
|
|
|
|
db = Database("ext_gerty")
|
|
|
|
gerty_static_files = [
|
|
{
|
|
"path": "/gerty/static",
|
|
"app": StaticFiles(packages=[("lnbits", "extensions/gerty/static")]),
|
|
"name": "gerty_static",
|
|
}
|
|
]
|
|
|
|
|
|
gerty_ext: APIRouter = APIRouter(prefix="/gerty", tags=["Gerty"])
|
|
|
|
|
|
def gerty_renderer():
|
|
return template_renderer(["lnbits/extensions/gerty/templates"])
|
|
|
|
|
|
from .views import * # noqa
|
|
from .views_api import * # noqa
|