Skip to content

Commit

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

---------

Co-authored-by: dni ⚡ <[email protected]>
  • Loading branch information
talvasconcelos and dni authored Sep 26, 2023
1 parent e841183 commit d202fe3
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 starlette.staticfiles import StaticFiles

from lnbits.db import Database
from lnbits.helpers import template_renderer
Expand All @@ -15,7 +14,6 @@
nostrclient_static_files = [
{
"path": "/nostrclient/static",
"app": StaticFiles(directory="lnbits/extensions/nostrclient/static"),
"name": "nostrclient_static",
}
]
Expand All @@ -33,7 +31,7 @@ def __init__(self):


def nostr_renderer():
return template_renderer(["lnbits/extensions/nostrclient/templates"])
return template_renderer(["nostrclient/templates"])


from .tasks import check_relays, init_relays, subscribe_events
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": "Nostr Client",
"short_description": "Nostr client for extensions",
"tile": "/nostrclient/static/images/nostr-bitcoin.png",
"contributors": ["calle"]
"contributors": ["calle"],
"min_lnbits_version": "0.11.0"
}

0 comments on commit d202fe3

Please sign in to comment.