Skip to content

Commit

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

---------

Co-authored-by: dni ⚡ <office@dnilabs.com>
  • Loading branch information
talvasconcelos and dni authored Sep 26, 2023
1 parent 4b587ae commit 45f0e88
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,5 +1,4 @@
from fastapi import APIRouter
from fastapi.staticfiles import StaticFiles

from lnbits.db import Database
from lnbits.helpers import template_renderer
Expand All @@ -11,14 +10,13 @@
tipjar_static_files = [
{
"path": "/tipjar/static",
"app": StaticFiles(directory="lnbits/extensions/tipjar/static"),
"name": "tipjar_static",
}
]


def tipjar_renderer():
return template_renderer(["lnbits/extensions/tipjar/templates"])
return template_renderer(["tipjar/templates"])


from .views import * # noqa: F401,F403
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": "Tip Jar",
"short_description": "Accept Bitcoin donations, with messages attached!",
"tile": "/tipjar/static/image/tipjar.png",
"contributors": ["Fittiboy"]
"tile": "/tipjar/static/image/tipjar.png",
"contributors": ["Fittiboy"],
"min_lnbits_version": "0.11.0"
}

0 comments on commit 45f0e88

Please sign in to comment.