Skip to content

Commit 0c371e8

Browse files
talvasconcelosdni
andauthored
allow custom path (#17)
* allow custom path * update to minversion 0.11.0 --------- Co-authored-by: dni ⚡ <[email protected]>
1 parent a0037f6 commit 0c371e8

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
@@ -15,14 +14,13 @@
1514
events_static_files = [
1615
{
1716
"path": "/events/static",
18-
"app": StaticFiles(packages=[("lnbits", "extensions/events/static")]),
1917
"name": "events_static",
2018
}
2119
]
2220

2321

2422
def events_renderer():
25-
return template_renderer(["lnbits/extensions/events/templates"])
23+
return template_renderer(["events/templates"])
2624

2725

2826
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": "Events",
33
"short_description": "Sell and register event tickets",
44
"tile": "/events/static/image/events.png",
5-
"contributors": ["benarc"]
5+
"contributors": ["benarc"],
6+
"min_lnbits_version": "0.11.0"
67
}

0 commit comments

Comments
 (0)