2021-11-25 18:52:16 +00:00
|
|
|
from fastapi import APIRouter
|
2022-12-31 14:15:23 +00:00
|
|
|
from starlette.staticfiles import StaticFiles
|
2021-11-25 18:52:16 +00:00
|
|
|
|
2021-10-13 17:08:48 +01:00
|
|
|
from lnbits.db import Database
|
2021-10-13 21:51:21 +01:00
|
|
|
from lnbits.helpers import template_renderer
|
2021-10-13 17:08:48 +01:00
|
|
|
|
2021-10-14 23:08:09 +01:00
|
|
|
db = Database("ext_satsdice")
|
2021-10-13 17:08:48 +01:00
|
|
|
|
2021-10-13 21:51:21 +01:00
|
|
|
satsdice_ext: APIRouter = APIRouter(prefix="/satsdice", tags=["satsdice"])
|
2021-10-13 17:08:48 +01:00
|
|
|
|
2022-12-31 14:15:23 +00:00
|
|
|
satsdice_static_files = [
|
|
|
|
{
|
|
|
|
"path": "/satsdice/static",
|
|
|
|
"app": StaticFiles(directory="lnbits/extensions/satsdice/static"),
|
|
|
|
"name": "satsdice_static",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
2021-10-13 21:51:21 +01:00
|
|
|
|
|
|
|
def satsdice_renderer():
|
2021-10-17 18:33:29 +01:00
|
|
|
return template_renderer(["lnbits/extensions/satsdice/templates"])
|
2021-10-13 17:08:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
from .lnurl import * # noqa
|
2021-11-25 18:52:16 +00:00
|
|
|
from .views import * # noqa
|
|
|
|
from .views_api import * # noqa
|