initial
Added bunch tiles, more to add
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import asyncio
|
||||
|
||||
from fastapi import APIRouter
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
from lnbits.db import Database
|
||||
from lnbits.helpers import template_renderer
|
||||
@@ -11,6 +12,14 @@ db = Database("ext_events")
|
||||
|
||||
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"])
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Events",
|
||||
"short_description": "Sell and register event tickets",
|
||||
"icon": "local_activity",
|
||||
"tile": "./events/static/image/events.png",
|
||||
"contributors": ["benarc"]
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 138 KiB |
Reference in New Issue
Block a user