Skip to content

Commit

Permalink
serve.py: forward /stats to the stats page
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng authored and LorenzMeier committed May 25, 2017
1 parent ecf6f6b commit 3e66669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'plot_app'))
from helper import set_log_id_is_filename, print_cache_info
from config import debug_print_timing
from tornado.web import RedirectHandler
from tornado_handlers import DownloadHandler, UploadHandler, BrowseHandler, \
EditEntryHandler

Expand Down Expand Up @@ -87,7 +88,8 @@ def _fixup_deprecated_host_args(arguments):
(r'/browse', BrowseHandler),
(r'/edit_entry', EditEntryHandler),
(r'/?', UploadHandler), #root should point to upload
(r'/download', DownloadHandler)
(r'/download', DownloadHandler),
(r"/stats", RedirectHandler, {"url": "/plot_app?stats=1"}),
]

server = Server(applications, extra_patterns=extra_patterns, **server_kwargs)
Expand Down

0 comments on commit 3e66669

Please sign in to comment.