summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/router/url_mappings.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-12 18:33:00 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-17 16:43:12 +0800
commita1a745b4820ec46a2e707d77f6178cf9e97654f6 (patch)
tree08521a4c07d8f06a28e3c026c2614ecf6d97e2f7 /utils/test/testapi/opnfv_testapi/router/url_mappings.py
parentf1415796efec4984962f9817639a5ff2cd9ecd41 (diff)
refactor static_path to accomodate web portal
move tornado_swagger/static to opnfv_testapi/static move swagger related 3rd libs to 3rd_party/swagger Change-Id: I32bba10584c99d13687b93f32577e37581db0c63 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/router/url_mappings.py')
-rw-r--r--utils/test/testapi/opnfv_testapi/router/url_mappings.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/test/testapi/opnfv_testapi/router/url_mappings.py b/utils/test/testapi/opnfv_testapi/router/url_mappings.py
index 94e71c62d..ebe59941a 100644
--- a/utils/test/testapi/opnfv_testapi/router/url_mappings.py
+++ b/utils/test/testapi/opnfv_testapi/router/url_mappings.py
@@ -6,6 +6,9 @@
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+import tornado.web
+
+from opnfv_testapi.common import config
from opnfv_testapi.resources import handlers
from opnfv_testapi.resources import pod_handlers
from opnfv_testapi.resources import project_handlers
@@ -49,4 +52,9 @@ mappings = [
# scenarios
(r"/api/v1/scenarios", scenario_handlers.ScenariosCLHandler),
(r"/api/v1/scenarios/([^/]+)", scenario_handlers.ScenarioGURHandler),
+
+ # static path
+ (r'/(.*\.(css|png|gif|js|html|json))',
+ tornado.web.StaticFileHandler,
+ {'path': config.Config().static_path}),
]