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

17 lines
370 B
Python
Raw Normal View History

from fastapi import APIRouter
2021-10-26 22:52:11 +01:00
from lnbits.db import Database
from lnbits.helpers import template_renderer
2021-10-26 22:52:11 +01:00
db = Database("ext_paywall")
2021-11-12 04:14:55 +00:00
paywall_ext: APIRouter = APIRouter(prefix="/paywall", tags=["Paywall"])
2021-10-26 22:52:11 +01:00
def paywall_renderer():
return template_renderer(["lnbits/extensions/paywall/templates"])
2021-10-26 22:52:11 +01:00
from .views import * # noqa
from .views_api import * # noqa