mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 22:58:46 +01:00
25 lines
599 B
Python
25 lines
599 B
Python
from fastapi import APIRouter
|
|
from starlette.staticfiles import StaticFiles
|
|
|
|
from lnbits.db import Database
|
|
from lnbits.helpers import template_renderer
|
|
|
|
db = Database("ext_paywall")
|
|
|
|
paywall_ext: APIRouter = APIRouter(prefix="/paywall", tags=["Paywall"])
|
|
|
|
paywall_static_files = [
|
|
{
|
|
"path": "/paywall/static",
|
|
"app": StaticFiles(directory="lnbits/extensions/paywall/static"),
|
|
"name": "paywall_static",
|
|
}
|
|
]
|
|
|
|
|
|
def paywall_renderer():
|
|
return template_renderer(["lnbits/extensions/paywall/templates"])
|
|
|
|
|
|
from .views import * # noqa
|
|
from .views_api import * # noqa
|