lnbits-legend/lnbits/extensions/twitchalerts/views.py

13 lines
318 B
Python
Raw Normal View History

2021-06-20 06:34:01 +02:00
from quart import g, render_template
from lnbits.decorators import check_user_exists, validate_uuids
2021-06-22 15:46:46 +02:00
from . import twitchalerts_ext
2021-06-20 06:34:01 +02:00
2021-06-22 15:46:46 +02:00
@twitchalerts_ext.route("/")
2021-06-20 06:34:01 +02:00
@validate_uuids(["usr"], required=True)
@check_user_exists()
async def index():
2021-06-22 15:46:46 +02:00
return await render_template("twitchalerts/index.html", user=g.user)