From 4645c41450e455916af0e99e0a6d17a072e35753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mara=20Z=C3=B6llner?= Date: Wed, 17 Jun 2026 14:28:33 +0200 Subject: [PATCH] =?UTF-8?q?=C3=A4nderung=20dateien=20+=20link=20=C3=A4nder?= =?UTF-8?q?ung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 15 +++++++++++---- templates/index.html | 4 ++-- templates/{frage.html => raetsel.html} | 0 3 files changed, 13 insertions(+), 6 deletions(-) rename templates/{frage.html => raetsel.html} (100%) diff --git a/app.py b/app.py index 15f40a7..2dceb05 100644 --- a/app.py +++ b/app.py @@ -4,19 +4,26 @@ app = Flask(__name__) @app.route("/") +@app.route("/app/") def hello(): return render_template("index.html") +@app.route("/raetsel", methods=["GET", "POST"]) +@app.route("/raetsel/", methods=["GET", "POST"]) +@app.route("/app/raetsel", methods=["GET", "POST"]) +@app.route("/app/raetsel/", methods=["GET", "POST"]) @app.route("/frage", methods=["GET", "POST"]) @app.route("/frage/", methods=["GET", "POST"]) -def frage(): +@app.route("/app/frage", methods=["GET", "POST"]) +@app.route("/app/frage/", methods=["GET", "POST"]) +def raetsel(): if request.method == "POST": if request.form["antwort"] == "4": - return render_template("frage.html", ergebnis="Richtig! Das Stadiontor öffnet sich.") - return render_template("frage.html", ergebnis="Leider falsch.") + return render_template("raetsel.html", ergebnis="Richtig! Das Stadiontor öffnet sich.") + return render_template("raetsel.html", ergebnis="Leider falsch.") - return render_template("frage.html") + return render_template("raetsel.html") if __name__ == "__main__": diff --git a/templates/index.html b/templates/index.html index f93eabe..5b46cff 100644 --- a/templates/index.html +++ b/templates/index.html @@ -144,7 +144,7 @@
@@ -159,7 +159,7 @@ Auf einer blauen Tafel steht ein Hinweis: Der erste Code steckt in der Zahl, die jeder Fan sofort erkennt.

- Zum Stadiontor + Zum Stadiontor
diff --git a/templates/frage.html b/templates/raetsel.html similarity index 100% rename from templates/frage.html rename to templates/raetsel.html