feat: update to lnbits 1.0.0

This commit is contained in:
dni ⚡ 2024-09-07 21:03:57 +02:00
commit fe6cbe4e2d
No known key found for this signature in database
GPG key ID: D1F416F29AD26E87
8 changed files with 898 additions and 862 deletions

View file

@ -1,7 +1,6 @@
from http import HTTPStatus
from fastapi import APIRouter, Depends, Request
from fastapi.templating import Jinja2Templates
from lnbits.core.models import User
from lnbits.decorators import check_user_exists
from lnbits.helpers import template_renderer
@ -17,9 +16,6 @@ def lnurlp_renderer():
return template_renderer(["lnurlp/templates"])
templates = Jinja2Templates(directory="templates")
@lnurlp_generic_router.get("/", response_class=HTMLResponse)
async def index(request: Request, user: User = Depends(check_user_exists)):
return lnurlp_renderer().TemplateResponse(