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 import APIRouter, Request, Response
|
||||||
from fastapi.routing import APIRoute
|
from fastapi.routing import APIRoute
|
||||||
|
|
||||||
from fastapi.staticfiles import StaticFiles
|
|
||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
|
|
||||||
from lnbits.db import Database
|
from lnbits.db import Database
|
||||||
|
|
@ -13,7 +12,6 @@ db = Database("ext_withdraw")
|
||||||
withdraw_static_files = [
|
withdraw_static_files = [
|
||||||
{
|
{
|
||||||
"path": "/withdraw/static",
|
"path": "/withdraw/static",
|
||||||
"app": StaticFiles(packages=[("lnbits", "extensions/withdraw/static")]),
|
|
||||||
"name": "withdraw_static",
|
"name": "withdraw_static",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
@ -45,7 +43,7 @@ withdraw_ext.route_class = LNURLErrorResponseHandler
|
||||||
|
|
||||||
|
|
||||||
def withdraw_renderer():
|
def withdraw_renderer():
|
||||||
return template_renderer(["lnbits/extensions/withdraw/templates"])
|
return template_renderer(["withdraw/templates"])
|
||||||
|
|
||||||
|
|
||||||
from .lnurl import * # noqa: F401,F403
|
from .lnurl import * # noqa: F401,F403
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "LNURLw",
|
"name": "LNURLw",
|
||||||
"short_description": "Make LNURL withdraw links",
|
"short_description": "Make LNURL withdraw links",
|
||||||
"tile": "/withdraw/static/image/lnurl-withdraw.png",
|
"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