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