Skip to content

Commit

Permalink
allow custom path (#5)
Browse files Browse the repository at this point in the history
* allow custom path
* update minversion to 0.11.0

---------

Co-authored-by: dni ⚡ <office@dnilabs.com>
  • Loading branch information
talvasconcelos and dni authored Sep 25, 2023
1 parent e71b59e commit 41fbd84
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,7 +1,6 @@
import asyncio

from fastapi import APIRouter
from fastapi.staticfiles import StaticFiles

from lnbits.db import Database
from lnbits.helpers import template_renderer
Expand All @@ -14,14 +13,13 @@
example_static_files = [
{
"path": "/example/static",
"app": StaticFiles(packages=[("lnbits", "extensions/example/static")]),
"name": "example_static",
}
]


def example_renderer():
return template_renderer(["lnbits/extensions/example/templates"])
return template_renderer(["example/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": "Build your own!",
"short_description": "Extension building guide",
"tile": "/example/static/bitcoin-extension.png",
"contributors": ["github_username"]
"contributors": ["github_username"],
"min_lnbits_version": "0.11.0"
}

0 comments on commit 41fbd84

Please sign in to comment.