improve frontend, no reloading. types in views_api, formatting
This commit is contained in:
parent
802d01cc4b
commit
bb1941445d
19 changed files with 134 additions and 119 deletions
14
views.py
14
views.py
|
|
@ -1,20 +1,18 @@
|
|||
from http import HTTPStatus
|
||||
import asyncio
|
||||
from http import HTTPStatus
|
||||
|
||||
# FastAPI good for incoming
|
||||
from fastapi import Request
|
||||
from fastapi.param_functions import Query
|
||||
from fastapi.params import Depends
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from starlette.exceptions import HTTPException
|
||||
from starlette.responses import HTMLResponse
|
||||
from . import nostrclient_ext, nostr_renderer
|
||||
|
||||
# FastAPI good for incoming
|
||||
from fastapi import Request
|
||||
from lnbits.core.crud import update_payment_status
|
||||
from lnbits.core.models import User
|
||||
from lnbits.core.views.api import api_payment
|
||||
from lnbits.decorators import check_user_exists, check_admin
|
||||
from lnbits.decorators import check_admin, check_user_exists
|
||||
from starlette.responses import HTMLResponse
|
||||
|
||||
from . import nostr_renderer, nostrclient_ext
|
||||
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue