Skip to content

Commit

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

Co-authored-by: dni ⚡ <[email protected]>
  • Loading branch information
talvasconcelos and dni authored Sep 26, 2023
1 parent 8cd5490 commit e374df7
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 @@
from fastapi import APIRouter, Request, Response
from fastapi.routing import APIRoute

from fastapi.staticfiles import StaticFiles
from fastapi.responses import JSONResponse

from lnbits.db import Database
Expand All @@ -13,7 +12,6 @@
withdraw_static_files = [
{
"path": "/withdraw/static",
"app": StaticFiles(packages=[("lnbits", "extensions/withdraw/static")]),
"name": "withdraw_static",
}
]
Expand Down Expand Up @@ -45,7 +43,7 @@ async def custom_route_handler(request: Request) -> Response:


def withdraw_renderer():
return template_renderer(["lnbits/extensions/withdraw/templates"])
return template_renderer(["withdraw/templates"])


from .lnurl 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": "LNURLw",
"short_description": "Make LNURL withdraw links",
"tile": "/withdraw/static/image/lnurl-withdraw.png",
"contributors": ["arcbtc", "eillarra"]
"tile": "/withdraw/static/image/lnurl-withdraw.png",
"contributors": ["arcbtc", "eillarra"],
"min_lnbits_version": "0.11.0"
}

0 comments on commit e374df7

Please sign in to comment.