aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-24 10:48:39 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-24 10:48:39 +0800
commit17c5415eaf9de202260bcb4f7c82a05d7b4880f0 (patch)
tree63deca5e364f2bfe558d00f30fd98bb12983b1df
parent435b189e18329901f59bf938d1006929f55571f4 (diff)
downloadfg21sim-17c5415eaf9de202260bcb4f7c82a05d7b4880f0.tar.bz2
webui: Bind "ProductsDownloadHandler" to URI "/products/download/"
-rw-r--r--fg21sim/webui/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fg21sim/webui/app.py b/fg21sim/webui/app.py
index 972771c..8ab19ce 100644
--- a/fg21sim/webui/app.py
+++ b/fg21sim/webui/app.py
@@ -19,6 +19,7 @@ from .handlers import (IndexHandler,
ConfigsAJAXHandler,
ConsoleAJAXHandler,
ProductsAJAXHandler,
+ ProductsDownloadHandler,
WSHandler)
from .utils import gen_cookie_secret
from ..configs import ConfigManager
@@ -71,6 +72,7 @@ class Application(tornado.web.Application):
url(r"/ajax/configs", ConfigsAJAXHandler),
url(r"/ajax/console", ConsoleAJAXHandler),
url(r"/ajax/products", ProductsAJAXHandler),
+ url(r"/products/download/(.*)", ProductsDownloadHandler),
url(r"/ws", WSHandler),
]
if options.debug: