diff --git a/__init__.py b/__init__.py index 5c6b87a..17c4033 100644 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,6 @@ import asyncio from fastapi import APIRouter -from starlette.staticfiles import StaticFiles from lnbits.db import Database from lnbits.helpers import template_renderer @@ -12,7 +11,6 @@ db = Database("ext_boltcards") boltcards_static_files = [ { "path": "/boltcards/static", - "app": StaticFiles(packages=[("lnbits", "extensions/boltcards/static")]), "name": "boltcards_static", } ] @@ -21,7 +19,7 @@ boltcards_ext: APIRouter = APIRouter(prefix="/boltcards", tags=["boltcards"]) def boltcards_renderer(): - return template_renderer(["lnbits/extensions/boltcards/templates"]) + return template_renderer(["boltcards/templates"]) from .lnurl import * # noqa: F401,F403 diff --git a/config.json b/config.json index 0551f18..47bdcd0 100644 --- a/config.json +++ b/config.json @@ -2,5 +2,6 @@ "name": "Bolt Cards", "short_description": "Self custody Bolt Cards with one time LNURLw", "tile": "/boltcards/static/image/boltcard.png", - "contributors": ["iwarpbtc", "arcbtc", "leesalminen"] + "contributors": ["iwarpbtc", "arcbtc", "leesalminen"], + "min_lnbits_version": "0.11.0" }