mirror of
https://github.com/lnbits/lnbits.git
synced 2025-08-09 01:32:14 +02:00
tickets fastAPI: init
This commit is contained in:
@@ -1,12 +1,25 @@
|
|||||||
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.db import Database
|
||||||
|
from lnbits.helpers import template_renderer
|
||||||
|
|
||||||
db = Database("ext_lnticket")
|
db = Database("ext_lnticket")
|
||||||
|
|
||||||
lnticket_ext: Blueprint = Blueprint(
|
lnticket_ext: APIRouter = APIRouter(
|
||||||
"lnticket", __name__, static_folder="static", template_folder="templates"
|
prefix="/lnticket",
|
||||||
|
tags=["LNTicket"]
|
||||||
|
# "lnticket", __name__, static_folder="static", template_folder="templates"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def lnticket_renderer():
|
||||||
|
return template_renderer(
|
||||||
|
[
|
||||||
|
"lnbits/extensions/lnticket/templates",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
from .views_api import * # noqa
|
from .views_api import * # noqa
|
||||||
from .views import * # noqa
|
from .views import * # noqa
|
||||||
|
Reference in New Issue
Block a user