allow custom path (#14)
* allow custom path
---------
Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
parent
8cd549042d
commit
e374df7756
2 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||
|
|
@ -13,7 +12,6 @@ db = Database("ext_withdraw")
|
|||
withdraw_static_files = [
|
||||
{
|
||||
"path": "/withdraw/static",
|
||||
"app": StaticFiles(packages=[("lnbits", "extensions/withdraw/static")]),
|
||||
"name": "withdraw_static",
|
||||
}
|
||||
]
|
||||
|
|
@ -45,7 +43,7 @@ withdraw_ext.route_class = LNURLErrorResponseHandler
|
|||
|
||||
|
||||
def withdraw_renderer():
|
||||
return template_renderer(["lnbits/extensions/withdraw/templates"])
|
||||
return template_renderer(["withdraw/templates"])
|
||||
|
||||
|
||||
from .lnurl import * # noqa: F401,F403
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
"name": "LNURLw",
|
||||
"short_description": "Make LNURL withdraw links",
|
||||
"tile": "/withdraw/static/image/lnurl-withdraw.png",
|
||||
"contributors": ["arcbtc", "eillarra"]
|
||||
"contributors": ["arcbtc", "eillarra"],
|
||||
"min_lnbits_version": "0.11.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue