from flask import * app = Flask("Witze") notes = [] @app.route("/") def root(): return render_template("index.html") @app.route("/note" ,methods=["POST","GET"]) def note(): if request.method == "POST": notes.append(str(request.data)[3:-2]) print(f"Notiz hinzugefĆ¼gt: {request.data}") return ["juhuuuu"] elif request.method == "GET": return notes