Skip to content

Commit 41fbd84

Browse files
talvasconcelosdni
andauthored
allow custom path (#5)
* allow custom path * update minversion to 0.11.0 --------- Co-authored-by: dni ⚡ <[email protected]>
1 parent e71b59e commit 41fbd84

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import asyncio
22

33
from fastapi import APIRouter
4-
from fastapi.staticfiles import StaticFiles
54

65
from lnbits.db import Database
76
from lnbits.helpers import template_renderer
@@ -14,14 +13,13 @@
1413
example_static_files = [
1514
{
1615
"path": "/example/static",
17-
"app": StaticFiles(packages=[("lnbits", "extensions/example/static")]),
1816
"name": "example_static",
1917
}
2018
]
2119

2220

2321
def example_renderer():
24-
return template_renderer(["lnbits/extensions/example/templates"])
22+
return template_renderer(["example/templates"])
2523

2624

2725
from .tasks import wait_for_paid_invoices

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"name": "Build your own!",
33
"short_description": "Extension building guide",
44
"tile": "/example/static/bitcoin-extension.png",
5-
"contributors": ["github_username"]
5+
"contributors": ["github_username"],
6+
"min_lnbits_version": "0.11.0"
67
}

0 commit comments

Comments
 (0)