pinnwand ergänzung
This commit is contained in:
parent
ad5dd0e7a5
commit
7b74387cdb
1 changed files with 2 additions and 5 deletions
7
app.py
7
app.py
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue