Skip to content

Commit

Permalink
Use the routes defined in serve.py rather than the defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Jan 23, 2014
1 parent 67e47f0 commit 3f3aa3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serve.py
Expand Up @@ -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),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3f3aa3d

Please sign in to comment.