From 5cd0e91c1de07b8932d0ff973660607605122bcc Mon Sep 17 00:00:00 2001 From: christian Date: Wed, 3 Aug 2016 16:27:57 +0200 Subject: Add settings & routing for serving Biodalliance --- wqflask/wqflask/views.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wqflask') 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/") +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") -- cgit v1.2.3