2021-10-14 11:45:56 +01:00
|
|
|
import asyncio
|
|
|
|
|
|
|
|
from fastapi import APIRouter
|
|
|
|
|
2021-10-14 10:02:02 +01:00
|
|
|
from lnbits.db import Database
|
2021-10-14 11:45:56 +01:00
|
|
|
from lnbits.helpers import template_renderer
|
2021-10-14 10:02:02 +01:00
|
|
|
|
|
|
|
db = Database("ext_satspay")
|
|
|
|
|
|
|
|
|
2021-10-17 18:33:29 +01:00
|
|
|
satspay_ext: APIRouter = APIRouter(prefix="/satspay", tags=["satspay"])
|
|
|
|
|
2021-10-14 10:02:02 +01:00
|
|
|
|
2021-10-14 11:45:56 +01:00
|
|
|
def satspay_renderer():
|
2021-10-17 18:33:29 +01:00
|
|
|
return template_renderer(["lnbits/extensions/satspay/templates"])
|
2021-10-14 11:45:56 +01:00
|
|
|
|
2021-10-14 10:02:02 +01:00
|
|
|
|
|
|
|
from .views_api import * # noqa
|
|
|
|
from .views import * # noqa
|