tickets fastAPI: init
This commit is contained in:
parent
0891611d2b
commit
3a3ef4cd22
1 changed files with 16 additions and 3 deletions
|
|
@ -1,10 +1,23 @@
|
|||
from quart import Blueprint
|
||||
from fastapi import APIRouter, FastAPI
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from starlette.routing import Mount
|
||||
|
||||
from lnbits.db import Database
|
||||
from lnbits.helpers import template_renderer
|
||||
|
||||
db = Database("ext_lnticket")
|
||||
|
||||
lnticket_ext: Blueprint = Blueprint(
|
||||
"lnticket", __name__, static_folder="static", template_folder="templates"
|
||||
lnticket_ext: APIRouter = APIRouter(
|
||||
prefix="/lnticket",
|
||||
tags=["LNTicket"]
|
||||
# "lnticket", __name__, static_folder="static", template_folder="templates"
|
||||
)
|
||||
|
||||
def lnticket_renderer():
|
||||
return template_renderer(
|
||||
[
|
||||
"lnbits/extensions/lnticket/templates",
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue