Skip to content

Commit

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

* bump

---------

Co-authored-by: dni ⚡ <[email protected]>
  • Loading branch information
talvasconcelos and dni authored Sep 26, 2023
1 parent dacf5ca commit b950970
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
Expand Up @@ -2,7 +2,6 @@
from typing import List

from fastapi import APIRouter
from fastapi.staticfiles import StaticFiles

from lnbits.db import Database
from lnbits.helpers import template_renderer
Expand All @@ -17,14 +16,13 @@
lnurldevice_static_files = [
{
"path": "/lnurldevice/static",
"app": StaticFiles(directory="lnbits/extensions/lnurldevice/static"),
"name": "lnurldevice_static",
}
]


def lnurldevice_renderer():
return template_renderer(["lnbits/extensions/lnurldevice/templates"])
return template_renderer(["lnurldevice/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": "LNURLDevice",
"short_description": "For offline LNURL devices",
"tile": "/lnurldevice/static/image/lnurldevice.png",
"contributors": ["arcbtc"]
"contributors": ["arcbtc"],
"min_lnbits_version": "0.11.0"
}

0 comments on commit b950970

Please sign in to comment.