Its alive!

This commit is contained in:
ben 2023-01-06 10:57:15 +00:00
parent 2aa9026392
commit bbb955df1b
4 changed files with 15 additions and 6 deletions

View File

@ -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"])

View File

@ -0,0 +1,6 @@
{
"name": "Build your own!",
"short_description": "Extension building guide",
"tile": "/example/static/bitcoin-extension.png",
"contributors": ["github_username"]
}

View File

@ -1,6 +0,0 @@
{
"name": "Build your own!!",
"short_description": "Join us, make an extension",
"tile": "/cashu/static/image/tile.png",
"contributors": ["github_username"]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB