From 3f3aa3db479797b9f019ff70c18441f9c2a2fe13 Mon Sep 17 00:00:00 2001 From: James Graham Date: Thu, 23 Jan 2014 12:03:55 +0000 Subject: [PATCH] Use the routes defined in serve.py rather than the defaults --- serve.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/serve.py b/serve.py index 54194fea5f7a81..d8bb73d107308c 100644 --- a/serve.py +++ b/serve.py @@ -20,7 +20,8 @@ sys.path.insert(1, os.path.join(repo_root, "tools", "pywebsocket", "src")) from mod_pywebsocket import standalone as pywebsocket -routes = [(any_method, "/tools/*", handlers.ErrorHandler(404)), +routes = [("GET", "/tools/runner/*", handlers.file_handler), + (any_method, "/tools/*", handlers.ErrorHandler(404)), (any_method, "/serve.py", handlers.ErrorHandler(404)), (any_method, "*.py", handlers.python_script_handler), ("GET", "*.asis", handlers.as_is_handler), @@ -150,6 +151,7 @@ def start_http_server(config, port): return wptserve.WebTestHttpd(host=config["host"], port=port, doc_root=repo_root, + routes=routes, rewrites=rewrites, config=config, use_ssl=False,