mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-26 23:51:55 +01:00
14 lines
491 B
Python
14 lines
491 B
Python
from quart import render_template, g
|
|
|
|
from lnbits.decorators import check_user_exists, validate_uuids
|
|
from . import lndhub_ext
|
|
from fastapi import FastAPI, Request
|
|
from fastapi.templating import Jinja2Templates
|
|
|
|
templates = Jinja2Templates(directory="templates")
|
|
|
|
@lndhub_ext.route("/")
|
|
@validate_uuids(["usr"], required=True)
|
|
@check_user_exists()
|
|
async def lndhub_index(request: Request):
|
|
return await templates.TemplateResponse("lndhub/index.html", {"request": request,"user":g.user})
|