Skip to content

Commit

Permalink
allow custom path (#5)
Browse files Browse the repository at this point in the history
* allow custom path
* minversion 0.11.0

---------

Co-authored-by: dni ⚡ <[email protected]>
  • Loading branch information
talvasconcelos and dni authored Sep 25, 2023
1 parent b935bac commit 9df416c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio

from fastapi import APIRouter
from starlette.staticfiles import StaticFiles
from typing import List

from lnbits.db import Database
Expand All @@ -14,7 +13,6 @@
invoices_static_files = [
{
"path": "/invoices/static",
"app": StaticFiles(directory="lnbits/extensions/invoices/static"),
"name": "invoices_static",
}
]
Expand All @@ -23,7 +21,7 @@


def invoices_renderer():
return template_renderer(["lnbits/extensions/invoices/templates"])
return template_renderer(["invoices/templates"])


from .tasks import wait_for_paid_invoices
Expand Down
5 changes: 3 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "Invoices",
"short_description": "Create invoices for your clients.",
"tile": "/invoices/static/image/invoices.png",
"contributors": ["leesalminen"]
"tile": "/invoices/static/image/invoices.png",
"contributors": ["leesalminen"],
"min_lnbits_version": "0.11.0"
}

0 comments on commit 9df416c

Please sign in to comment.