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