pinnwand ergänzung

This commit is contained in:
Lea Hackl 2026-06-17 16:46:32 +02:00
parent ad5dd0e7a5
commit 7b74387cdb

7
app.py
View file

@ -3,6 +3,7 @@ from flask import Flask, request
app = Flask(__name__)
@app.route("/")
#nachrichten
def hello():
return "Hallo aus meiner Flask-App!"
@ -15,12 +16,8 @@ def frage():
return '<form method="post">Was ist 3 + 5? ' \
'<input name="antwort"><button>OK</button></form>'
if __name__ == "__main__":
app.run(host="0.0.0.0", port=9006) # 90 + Raumnummer
ffrom flask import Flask, request, redirect
app = Flask(__name__)
#pinnwand
eintraege = [] # speichert die Nachrichten (im Arbeitsspeicher)
@app.route("/pinnwand", methods=["GET", "POST"])