Skip to content

Commit

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

* update minversion 0.11.0

---------

Co-authored-by: dni ⚡ <office@dnilabs.com>
  • Loading branch information
talvasconcelos and dni committed Sep 25, 2023
1 parent 0e82b12 commit 164ed92
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,5 +1,4 @@
from fastapi import APIRouter
from fastapi.staticfiles import StaticFiles

from lnbits.db import Database
from lnbits.helpers import template_renderer
Expand All @@ -9,7 +8,6 @@
gerty_static_files = [
{
"path": "/gerty/static",
"app": StaticFiles(packages=[("lnbits", "extensions/gerty/static")]),
"name": "gerty_static",
}
]
Expand All @@ -19,7 +17,7 @@


def gerty_renderer():
return template_renderer(["lnbits/extensions/gerty/templates"])
return template_renderer(["gerty/templates"])


from .views 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": "Gerty",
"short_description": "Desktop bitcoin Assistant",
"tile": "/gerty/static/gerty.png",
"contributors": ["arcbtc", "blackcoffeebtc"]
"contributors": ["arcbtc", "blackcoffeebtc"],
"min_lnbits_version": "0.11.0"
}

0 comments on commit 164ed92

Please sign in to comment.