From 8d18c2f8c4ec0befef79775377e601820184b5a2 Mon Sep 17 00:00:00 2001 From: Tahar Lamred & Theresa Nerz Date: Wed, 1 Jul 2026 15:48:50 +0200 Subject: [PATCH] Update Flask app routing and port config --- app/app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/app.py b/app/app.py index faf188c..a77c5d3 100644 --- a/app/app.py +++ b/app/app.py @@ -1,8 +1,11 @@ -from flask import Flask, request +import os +from flask import Flask, redirect, request app = Flask(__name__) @app.route("/") +@app.route("/app") +@app.route("/app/") def hello(): return "Willkommen in unserem Escape Room!" @@ -30,4 +33,5 @@ def pinnwand(): '' if __name__ == "__main__": - app.run(host="0.0.0.0", port=9003) + port = int(os.environ.get("PORT", "9003")) + app.run(host="0.0.0.0", port=port)