Fixed path for extension templates

This commit is contained in:
ben 2022-07-23 20:08:59 +01:00
parent 984f06239f
commit 0e8da3c368
9 changed files with 10 additions and 9 deletions

View File

@ -18,7 +18,7 @@ bleskomat_ext: APIRouter = APIRouter(prefix="/bleskomat", tags=["Bleskomat"])
def bleskomat_renderer():
return template_renderer([StaticFiles(packages=[("lnbits", "extensions/bleskomat/static/templates")])])
return template_renderer(["lnbits/extensions/bleskomat/templates"])
from .lnurl_api import * # noqa

View File

@ -20,7 +20,7 @@ copilot_ext: APIRouter = APIRouter(prefix="/copilot", tags=["copilot"])
def copilot_renderer():
return template_renderer([StaticFiles(packages=[("lnbits", "extensions/copilot/static/templates")])])
return template_renderer(["lnbits/extensions/copilot/templates"])
from .lnurl import * # noqa

View File

@ -18,7 +18,7 @@ discordbot_ext: APIRouter = APIRouter(prefix="/discordbot", tags=["discordbot"])
def discordbot_renderer():
return template_renderer([StaticFiles(packages=[("lnbits", "extensions/discordbot/static/templates")])])
return template_renderer(["lnbits/extensions/discordbot/templates"])
from .views import * # noqa

View File

@ -21,7 +21,7 @@ jukebox_ext: APIRouter = APIRouter(prefix="/jukebox", tags=["jukebox"])
def jukebox_renderer():
return template_renderer([StaticFiles(packages=[("lnbits", "extensions/jukebox/static/templates")])])
return template_renderer(["lnbits/extensions/jukebox/templates"])
from .tasks import wait_for_paid_invoices

View File

@ -21,7 +21,7 @@ livestream_ext: APIRouter = APIRouter(prefix="/livestream", tags=["livestream"])
def livestream_renderer():
return template_renderer([StaticFiles(packages=[("lnbits", "extensions/livestream/static/templates")])])
return template_renderer(["lnbits/extensions/livestream/templates"])
from .lnurl import * # noqa

View File

@ -21,7 +21,7 @@ lnurlp_ext: APIRouter = APIRouter(prefix="/lnurlp", tags=["lnurlp"])
def lnurlp_renderer():
return template_renderer([StaticFiles(packages=[("lnbits", "extensions/lnurlp/static/templates")])])
return template_renderer(["lnbits/extensions/lnurlp/templates"])
from .lnurl import * # noqa

View File

@ -18,7 +18,8 @@ offlineshop_ext: APIRouter = APIRouter(prefix="/offlineshop", tags=["Offlineshop
def offlineshop_renderer():
return template_renderer([StaticFiles(packages=[("lnbits", "extensions/offlineshop/static/templates")])])
return template_renderer(["lnbits/extensions/offlineshop/templates"])
from .lnurl import * # noqa

View File

@ -22,7 +22,7 @@ splitpayments_ext: APIRouter = APIRouter(
def splitpayments_renderer():
return template_renderer([StaticFiles(packages=[("lnbits", "extensions/splitpayments/static/templates")])])
return template_renderer(["lnbits/extensions/splitpayments/templates"])
from .tasks import wait_for_paid_invoices

View File

@ -19,7 +19,7 @@ withdraw_ext: APIRouter = APIRouter(prefix="/withdraw", tags=["withdraw"])
def withdraw_renderer():
return template_renderer([StaticFiles(packages=[("lnbits", "extensions/withdraw/static/templates")])])
return template_renderer(["lnbits/extensions/withdraw/templates"])
from .lnurl import * # noqa