Skip to content

Commit 4623b2e

Browse files
talvasconcelosdni
andauthored
allow custom path (#9)
* allow custom path * bump --------- Co-authored-by: dni ⚡ <office@dnilabs.com>
1 parent a2efae3 commit 4623b2e

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from typing import List
33

44
from fastapi import APIRouter
5-
from fastapi.staticfiles import StaticFiles
65

76
from lnbits.db import Database
87
from lnbits.helpers import template_renderer
@@ -15,7 +14,6 @@
1514
splitpayments_static_files = [
1615
{
1716
"path": "/splitpayments/static",
18-
"app": StaticFiles(packages=[("lnbits", "extensions/splitpayments/static")]),
1917
"name": "splitpayments_static",
2018
}
2119
]
@@ -25,7 +23,7 @@
2523

2624

2725
def splitpayments_renderer():
28-
return template_renderer(["lnbits/extensions/splitpayments/templates"])
26+
return template_renderer(["splitpayments/templates"])
2927

3028

3129
from .tasks import wait_for_paid_invoices

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"name": "Split Payments",
33
"short_description": "Split incoming payments across wallets",
44
"tile": "/splitpayments/static/image/split-payments.png",
5-
"contributors": ["fiatjaf", "cryptograffiti"]
5+
"contributors": ["fiatjaf", "cryptograffiti"],
6+
"min_lnbits_version": "0.11.0"
67
}

0 commit comments

Comments
 (0)