From 24f5ac52ab481f2d9da2c60f50e83dab1afa5c85 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Wed, 26 Jan 2022 16:44:59 +0300 Subject: endpoint to download network files --- wqflask/wqflask/views.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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//") +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) -- cgit v1.2.3