mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
26 lines
587 B
Python
26 lines
587 B
Python
from fastapi import APIRouter
|
|
from fastapi.staticfiles import StaticFiles
|
|
|
|
from lnbits.db import Database
|
|
from lnbits.helpers import template_renderer
|
|
|
|
db = Database("ext_tipjar")
|
|
|
|
tipjar_ext: APIRouter = APIRouter(prefix="/tipjar", tags=["tipjar"])
|
|
|
|
tipjar_static_files = [
|
|
{
|
|
"path": "/tipjar/static",
|
|
"app": StaticFiles(directory="lnbits/extensions/tipjar/static"),
|
|
"name": "tipjar_static",
|
|
}
|
|
]
|
|
|
|
|
|
def tipjar_renderer():
|
|
return template_renderer(["lnbits/extensions/tipjar/templates"])
|
|
|
|
|
|
from .views import * # noqa
|
|
from .views_api import * # noqa
|