allow custom path (#17)

* allow custom path

* update to minversion 0.11.0

---------

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
Tiago Vasconcelos 2023-09-25 15:26:13 +01:00 committed by GitHub
parent a0037f685a
commit 0c371e81df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -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
@ -15,14 +14,13 @@ events_ext: APIRouter = APIRouter(prefix="/events", tags=["Events"])
events_static_files = [
{
"path": "/events/static",
"app": StaticFiles(packages=[("lnbits", "extensions/events/static")]),
"name": "events_static",
}
]
def events_renderer():
return template_renderer(["lnbits/extensions/events/templates"])
return template_renderer(["events/templates"])
from .tasks import wait_for_paid_invoices

View file

@ -2,5 +2,6 @@
"name": "Events",
"short_description": "Sell and register event tickets",
"tile": "/events/static/image/events.png",
"contributors": ["benarc"]
"contributors": ["benarc"],
"min_lnbits_version": "0.11.0"
}