Skip to content

Commit

Permalink
allow custom path (#2)
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 e46fb7b commit 7840216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio

from fastapi import APIRouter
from starlette.staticfiles import StaticFiles

from lnbits.db import Database
from lnbits.helpers import template_renderer
Expand All @@ -12,7 +11,6 @@
nostrnip5_static_files = [
{
"path": "/nostrnip5/static",
"app": StaticFiles(directory="lnbits/extensions/nostrnip5/static"),
"name": "nostrnip5_static",
}
]
Expand All @@ -21,7 +19,7 @@


def nostrnip5_renderer():
return template_renderer(["lnbits/extensions/nostrnip5/templates"])
return template_renderer(["nostrnip5/templates"])


from .tasks import wait_for_paid_invoices
Expand Down
5 changes: 3 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "Nostr NIP-5",
"short_description": "Verify addresses for Nostr NIP-5",
"tile": "/nostrnip5/static/image/nostrnip5.png",
"contributors": ["leesalminen"]
"tile": "/nostrnip5/static/image/nostrnip5.png",
"contributors": ["leesalminen"],
"min_lnbits_version": "0.11.0"
}

0 comments on commit 7840216

Please sign in to comment.