aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorchristian2016-08-03 16:27:57 +0200
committerchristian2016-08-03 16:27:57 +0200
commit5cd0e91c1de07b8932d0ff973660607605122bcc (patch)
tree6e91f428420d087383152fef7fcdb7450f1c7efe /wqflask
parentc33d090f2067c19ea1229dad1e6b45cdb57c0612 (diff)
downloadgenenetwork2-5cd0e91c1de07b8932d0ff973660607605122bcc.tar.gz
Add settings & routing for serving Biodalliance
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 70e465d1..7d3caea4 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -106,6 +106,12 @@ def tmp_page(img_path):
img_base64 = bytesarray )
+@app.route("/dalliance/<file_path>")
+def bd_files(file_path):
+ bd_path = app.config['BIODALLIANCE_PATH']
+ return send_from_directory(bd_path, file_path)
+
+
#@app.route("/data_sharing")
#def data_sharing_page():
# logger.info("In data_sharing")