mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
24 lines
580 B
Python
24 lines
580 B
Python
from fastapi import APIRouter
|
|
from fastapi.staticfiles import StaticFiles
|
|
|
|
from lnbits.db import Database
|
|
from lnbits.helpers import template_renderer
|
|
|
|
db = Database("ext_hivemind")
|
|
|
|
hivemind_ext: APIRouter = APIRouter(prefix="/hivemind", tags=["hivemind"])
|
|
|
|
|
|
def hivemind_renderer():
|
|
return template_renderer(["lnbits/extensions/hivemind/templates"])
|
|
|
|
|
|
hivemind_static_files = [
|
|
{
|
|
"path": "/hivemind/static",
|
|
"app": StaticFiles(packages=[("lnbits", "extensions/hivemind/static")]),
|
|
"name": "hivemind_static",
|
|
}
|
|
]
|
|
|
|
from .views import * # noqa
|