mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
16 lines
492 B
Python
16 lines
492 B
Python
from quart import g, render_template
|
|
|
|
from lnbits.decorators import check_user_exists, validate_uuids
|
|
|
|
from . import hivemind_ext
|
|
from fastapi import FastAPI, Request
|
|
from fastapi.templating import Jinja2Templates
|
|
|
|
templates = Jinja2Templates(directory="templates")
|
|
|
|
@hivemind_ext.route("/")
|
|
@validate_uuids(["usr"], required=True)
|
|
@check_user_exists()
|
|
async def index(request: Request):
|
|
return await templates.TemplateResponse("hivemind/index.html", {"request": request, "user":g.user})
|