allow custom path (#9)
* allow custom path
* bump
---------
Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
parent
a2efae3c30
commit
4623b2e0a7
2 changed files with 3 additions and 4 deletions
|
|
@ -2,7 +2,6 @@ import asyncio
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
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
|
||||||
|
|
@ -15,7 +14,6 @@ scheduled_tasks: List[asyncio.Task] = []
|
||||||
splitpayments_static_files = [
|
splitpayments_static_files = [
|
||||||
{
|
{
|
||||||
"path": "/splitpayments/static",
|
"path": "/splitpayments/static",
|
||||||
"app": StaticFiles(packages=[("lnbits", "extensions/splitpayments/static")]),
|
|
||||||
"name": "splitpayments_static",
|
"name": "splitpayments_static",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
@ -25,7 +23,7 @@ splitpayments_ext: APIRouter = APIRouter(
|
||||||
|
|
||||||
|
|
||||||
def splitpayments_renderer():
|
def splitpayments_renderer():
|
||||||
return template_renderer(["lnbits/extensions/splitpayments/templates"])
|
return template_renderer(["splitpayments/templates"])
|
||||||
|
|
||||||
|
|
||||||
from .tasks import wait_for_paid_invoices
|
from .tasks import wait_for_paid_invoices
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,6 @@
|
||||||
"name": "Split Payments",
|
"name": "Split Payments",
|
||||||
"short_description": "Split incoming payments across wallets",
|
"short_description": "Split incoming payments across wallets",
|
||||||
"tile": "/splitpayments/static/image/split-payments.png",
|
"tile": "/splitpayments/static/image/split-payments.png",
|
||||||
"contributors": ["fiatjaf", "cryptograffiti"]
|
"contributors": ["fiatjaf", "cryptograffiti"],
|
||||||
|
"min_lnbits_version": "0.11.0"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue