removed all but one extension, so we can focus on core

This commit is contained in:
Ben Arc
2021-08-16 18:12:48 +01:00
parent afc2b78a25
commit 9c313586bd
274 changed files with 0 additions and 26032 deletions
-28
View File
@@ -1,28 +0,0 @@
from quart import g, abort, render_template
from lnbits.decorators import check_user_exists, validate_uuids
from http import HTTPStatus
from . import streamalerts_ext
from .crud import get_service
@streamalerts_ext.route("/")
@validate_uuids(["usr"], required=True)
@check_user_exists()
async def index():
"""Return the extension's settings page"""
return await render_template("streamalerts/index.html", user=g.user)
@streamalerts_ext.route("/<state>")
async def donation(state):
"""Return the donation form for the Service corresponding to state"""
service = await get_service(0, by_state=state)
if not service:
abort(HTTPStatus.NOT_FOUND, "Service does not exist.")
return await render_template(
"streamalerts/display.html",
twitchuser=service.twitchuser,
service=service.id
)