Ive waitet way too long

This commit is contained in:
Marcel Gansfusz
2025-01-25 00:38:36 +01:00
commit 6275e5cfa2
25 changed files with 79273 additions and 0 deletions

21
app/main_flask.py_ Normal file
View File

@@ -0,0 +1,21 @@
import flask
app = flask.Flask(__name__)
app.secret_key = "test"
@app.route("/")
def view_index():
return flask.render_template("../index.html")
@app.route("/handle_post", methods=["POST"])
def handle_post():
if request.method == "POST":
file = request.args.get("file")
print(file)
return flask.render_template("../index.html")
if __name__ == "__main__":
app.run()