From 7315884db2675b2375d1c53587f58089c28d490d Mon Sep 17 00:00:00 2001 From: DannyArends Date: Wed, 8 Feb 2017 09:31:57 +0100 Subject: Adding routes for all 3 analysis tools --- wqflask/wqflask/views.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 935304da..91e2ffb2 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -251,6 +251,16 @@ def phewas(): logger.info("In phewas, request.form is:", request.form) # We are going to get additional user input for the analysis return render_template("phewas_analysis.html", **request.form) # Display them using the template +@app.route("/ephewas", methods=('POST',)) +def ephewas(): + logger.info("In ephewas, request.form is:", request.form) # We are going to get additional user input for the analysis + return render_template("ephewas_analysis.html", **request.form) # Display them using the template + +@app.route("/mediation", methods=('POST',)) +def mediation(): + logger.info("In mediation, request.form is:", request.form) # We are going to get additional user input for the analysis + return render_template("mediation_analysis.html", **request.form) # Display them using the template + @app.route("/ctl_setup", methods=('POST',)) def ctl_setup(): logger.info("In ctl, request.form is:", request.form) # We are going to get additional user input for the analysis -- cgit v1.2.3