Skip to content

Commit

Permalink
allow custom path (#17)
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 0215986 commit 473614f
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 @@ -15,7 +14,6 @@
nostrrelay_static_files = [
{
"path": "/nostrrelay/static",
"app": StaticFiles(directory="lnbits/extensions/nostrrelay/static"),
"name": "nostrrelay_static",
}
]
Expand All @@ -32,7 +30,7 @@


def nostrrelay_renderer():
return template_renderer(["lnbits/extensions/nostrrelay/templates"])
return template_renderer(["nostrrelay/templates"])


from .tasks import wait_for_paid_invoices
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 Relay",
"short_description": "One click launch your own relay!",
"tile": "/nostrrelay/static/image/nostrrelay.png",
"contributors": ["arcbtc", "DCs"]
"contributors": ["arcbtc", "DCs"],
"min_lnbits_version": "0.11.0"
}

0 comments on commit 473614f

Please sign in to comment.