Skip to content

Commit 9df416c

Browse files
talvasconcelosdni
andauthored
allow custom path (#5)
* allow custom path * minversion 0.11.0 --------- Co-authored-by: dni ⚡ <[email protected]>
1 parent b935bac commit 9df416c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import asyncio
22

33
from fastapi import APIRouter
4-
from starlette.staticfiles import StaticFiles
54
from typing import List
65

76
from lnbits.db import Database
@@ -14,7 +13,6 @@
1413
invoices_static_files = [
1514
{
1615
"path": "/invoices/static",
17-
"app": StaticFiles(directory="lnbits/extensions/invoices/static"),
1816
"name": "invoices_static",
1917
}
2018
]
@@ -23,7 +21,7 @@
2321

2422

2523
def invoices_renderer():
26-
return template_renderer(["lnbits/extensions/invoices/templates"])
24+
return template_renderer(["invoices/templates"])
2725

2826

2927
from .tasks import wait_for_paid_invoices

config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "Invoices",
33
"short_description": "Create invoices for your clients.",
4-
"tile": "/invoices/static/image/invoices.png",
5-
"contributors": ["leesalminen"]
4+
"tile": "/invoices/static/image/invoices.png",
5+
"contributors": ["leesalminen"],
6+
"min_lnbits_version": "0.11.0"
67
}

0 commit comments

Comments
 (0)