jetzvlltaufgabe6
This commit is contained in:
parent
794d2af1bf
commit
2d993a2f11
1 changed files with 2 additions and 4 deletions
6
app.py
6
app.py
|
|
@ -1,13 +1,11 @@
|
||||||
from flask import Flask
|
from flask import Flask, request
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def hello():
|
def hello():
|
||||||
return "Willkommen in unserem Escape Room!"
|
return "Hallo aus meiner Flask-App!"
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
app.run(host="0.0.0.0", port=9006) # 90 + Raumnummer
|
|
||||||
@app.route("/frage", methods=["GET", "POST"])
|
@app.route("/frage", methods=["GET", "POST"])
|
||||||
def frage():
|
def frage():
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue