Its alive!
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from fastapi import APIRouter
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
from lnbits.db import Database
|
||||
from lnbits.helpers import template_renderer
|
||||
@@ -7,6 +8,14 @@ db = Database("ext_example")
|
||||
|
||||
example_ext: APIRouter = APIRouter(prefix="/example", tags=["example"])
|
||||
|
||||
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"])
|
||||
|
||||
Reference in New Issue
Block a user