Skip to content

Commit

Permalink
allow custom path (#20)
Browse files Browse the repository at this point in the history
* allow custom path

* minversion 0.11.0

---------

Co-authored-by: dni ⚡ <[email protected]>
  • Loading branch information
talvasconcelos and dni authored Sep 25, 2023
1 parent b6380df commit 0901e5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -12,7 +11,6 @@
boltcards_static_files = [
{
"path": "/boltcards/static",
"app": StaticFiles(packages=[("lnbits", "extensions/boltcards/static")]),
"name": "boltcards_static",
}
]
Expand All @@ -21,7 +19,7 @@


def boltcards_renderer():
return template_renderer(["lnbits/extensions/boltcards/templates"])
return template_renderer(["boltcards/templates"])


from .lnurl import * # noqa: F401,F403
Expand Down
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 0901e5e

Please sign in to comment.