mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-09 03:52:34 +02:00
Added tile
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
|
from fastapi.staticfiles import StaticFiles
|
||||||
|
|
||||||
from lnbits.db import Database
|
from lnbits.db import Database
|
||||||
from lnbits.helpers import template_renderer
|
from lnbits.helpers import template_renderer
|
||||||
@@ -8,6 +9,14 @@ from lnbits.tasks import catch_everything_and_restart
|
|||||||
|
|
||||||
db = Database("ext_smtp")
|
db = Database("ext_smtp")
|
||||||
|
|
||||||
|
smtp_static_files = [
|
||||||
|
{
|
||||||
|
"path": "/smtp/static",
|
||||||
|
"app": StaticFiles(directory="lnbits/extensions/smtp/static"),
|
||||||
|
"name": "smtp_static",
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
smtp_ext: APIRouter = APIRouter(prefix="/smtp", tags=["smtp"])
|
smtp_ext: APIRouter = APIRouter(prefix="/smtp", tags=["smtp"])
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "SMTP",
|
"name": "SMTP",
|
||||||
"short_description": "Let users send emails via your SMTP and earn sats",
|
"short_description": "Charge sats for sending emails",
|
||||||
"icon": "email",
|
"tile": "/smtp/static/smtp-bitcoin-email.png",
|
||||||
"contributors": ["dni"]
|
"contributors": ["dni"]
|
||||||
}
|
}
|
||||||
|
BIN
lnbits/extensions/smtp/static/smtp-bitcoin-email.png
Normal file
BIN
lnbits/extensions/smtp/static/smtp-bitcoin-email.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user