allow custom path (#14)
Some checks failed
/ release (push) Has been cancelled
/ pullrequest (push) Has been cancelled

* allow custom path
---------

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
Tiago Vasconcelos 2023-09-26 13:05:14 +01:00 committed by GitHub
commit e374df7756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -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

View file

@ -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"
}