Fixed path for extension templates
This commit is contained in:
parent
984f06239f
commit
0e8da3c368
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user