allow custom path (#20)
* allow custom path
---------
Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
parent
e841183c10
commit
d202fe3055
2 changed files with 3 additions and 4 deletions
|
|
@ -2,7 +2,6 @@ import asyncio
|
|||
from typing import List
|
||||
|
||||
from fastapi import APIRouter
|
||||
from starlette.staticfiles import StaticFiles
|
||||
|
||||
from lnbits.db import Database
|
||||
from lnbits.helpers import template_renderer
|
||||
|
|
@ -15,7 +14,6 @@ db = Database("ext_nostrclient")
|
|||
nostrclient_static_files = [
|
||||
{
|
||||
"path": "/nostrclient/static",
|
||||
"app": StaticFiles(directory="lnbits/extensions/nostrclient/static"),
|
||||
"name": "nostrclient_static",
|
||||
}
|
||||
]
|
||||
|
|
@ -33,7 +31,7 @@ nostr = NostrClient()
|
|||
|
||||
|
||||
def nostr_renderer():
|
||||
return template_renderer(["lnbits/extensions/nostrclient/templates"])
|
||||
return template_renderer(["nostrclient/templates"])
|
||||
|
||||
|
||||
from .tasks import check_relays, init_relays, subscribe_events
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue