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()
