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

17 lines
364 B
Python
Raw Normal View History

2021-10-20 17:34:00 +02:00
from fastapi import APIRouter
2021-10-20 12:14:56 +02:00
from lnbits.db import Database
from lnbits.helpers import template_renderer
db = Database("ext_tipjar")
tipjar_ext: APIRouter = APIRouter(prefix="/tipjar", tags=["tipjar"])
def tipjar_renderer():
return template_renderer(["lnbits/extensions/tipjar/templates"])
from .views import * # noqa
2021-10-20 17:34:00 +02:00
from .views_api import * # noqa