about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/views.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index ec321401..0be881cf 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -364,6 +364,15 @@ def ctl_results():
     ctl_results = run_ctl(request.form)
     return render_template("gn3_ctl_results.html",**ctl_results)
 
+
+@app.route("/ctl_network_files/<file_name>/<file_type>")
+def fetch_network_files(file_name,file_type):
+    file_path = f"{file_name}.{file_type}"
+
+    file_path  = os.path.join("/tmp/",file_path)
+
+    return send_file(file_path)
+
 @app.route("/intro")
 def intro():
     doc = Docs("intro", request.args)