modified: app.py

new file:   templates/landing.html
This commit is contained in:
SimolZimol
2024-09-06 11:41:48 +02:00
parent 1c5ae7ad44
commit 2fed154831
2 changed files with 43 additions and 4 deletions

7
app.py
View File

@@ -95,10 +95,9 @@ def make_discord_session(token=None, state=None):
@app.route("/")
def index():
if "username" in session:
return render_template("index.html", bot_running=bot_status())
return redirect(url_for("login"))
def landing_page():
"""Ungeschützte Landing Page"""
return render_template("landing.html")
@app.route("/login")
def login():