climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [1/2] git commit: CLIMATE-516 - Fix backend static file serving paths
Date Wed, 03 Sep 2014 21:25:09 GMT
Repository: climate
Updated Branches:
  refs/heads/master b83214e48 -> 98efecb31


CLIMATE-516 - Fix backend static file serving paths


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/efc00054
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/efc00054
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/efc00054

Branch: refs/heads/master
Commit: efc000547729a120131ff5ea585f13f83bd248ff
Parents: b83214e
Author: Michael Joyce <joyce@apache.org>
Authored: Wed Sep 3 11:52:27 2014 -0700
Committer: Michael Joyce <joyce@apache.org>
Committed: Wed Sep 3 11:52:27 2014 -0700

----------------------------------------------------------------------
 ocw-ui/backend/run_webservices.py | 30 +++++++++++++-----------------
 1 file changed, 13 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/efc00054/ocw-ui/backend/run_webservices.py
----------------------------------------------------------------------
diff --git a/ocw-ui/backend/run_webservices.py b/ocw-ui/backend/run_webservices.py
index 4e50801..3f38e2c 100644
--- a/ocw-ui/backend/run_webservices.py
+++ b/ocw-ui/backend/run_webservices.py
@@ -31,27 +31,23 @@ app.mount('/processing/', processing_app)
 @app.route('/')
 @app.route('/index.html')
 def index():
-    return static_file('index.html', root='./app')
+    return static_file('index.html', root='./frontend/app/')
 
-@app.route('/js/:path#.+#')
-def server_static(path):
-    return static_file(path, root='./app/js/')
+@app.route('/bower_components/:path#.+#')
+def serve_static(path):
+    return static_file(path, root='./frontend/bower_components/')
 
-@app.route('/css/:path#.+#')
-def server_static(path):
-    return static_file(path, root='./app/css/')
+@app.route('/styles/:path#.+#')
+def serve_static(path):
+    return static_file(path, root='./frontend/app/styles/')
 
-@app.route('/img/:path#.+#')
-def server_static(path):
-    return static_file(path, root='./app/img/')
+@app.route('/scripts/:path#.+#')
+def serve_static(path):
+    return static_file(path, root='./frontend/app/scripts/')
 
-@app.route('/partials/:path#.+#')
-def server_static(path):
-    return static_file(path, root='./app/partials/')
-
-@app.route('/font/:path#.+#')
-def server_static(path):
-    return static_file(path, root='./app/font/')
+@app.route('/views/:path#.+#')
+def serve_static(path):
+    return static_file(path, root='./frontend/app/views/')
 
 @app.route('/static/eval_results/<file_path:path>')
 def get_eval_result_image(file_path):


Mime
View raw message