| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import gae_ts_mon | 5 import gae_ts_mon |
| 6 import webapp2 | 6 import webapp2 |
| 7 | 7 |
| 8 from handlers.admin_dispatch import AdminDispatch | 8 from handlers.admin_dispatch import AdminDispatch |
| 9 from handlers.builder_timeline_data import BuilderTimelineData | |
| 10 from handlers.index import Index | 9 from handlers.index import Index |
| 11 from handlers.patch_status import PatchStatus | 10 from handlers.patch_status import PatchStatus |
| 12 from handlers.patch_summary import PatchSummary | 11 from handlers.patch_summary import PatchSummary |
| 13 from handlers.patch_timeline import PatchTimeline | |
| 14 from handlers.patch_timeline_data import PatchTimelineData | |
| 15 from handlers.post import Post | 12 from handlers.post import Post |
| 16 from handlers.stats_viewer import StatsViewer | 13 from handlers.stats_viewer import StatsViewer |
| 17 from handlers.stats_data_points import StatsDataPoints | 14 from handlers.stats_data_points import StatsDataPoints |
| 18 | 15 |
| 19 handlers = [ | 16 handlers = [ |
| 20 (r'/', Index), | 17 (r'/', Index), |
| 21 (r'/admin/(.*)', AdminDispatch), | 18 (r'/admin/(.*)', AdminDispatch), |
| 22 (r'/builder-timeline-data/(.*)/(.*)/(.*)/(.*)', BuilderTimelineData), | |
| 23 (r'/patchset/(.*)/(.*)', PatchStatus), # Legacy URL for old links. | 19 (r'/patchset/(.*)/(.*)', PatchStatus), # Legacy URL for old links. |
| 24 (r'/patch-status/(.*)/(.*)', PatchStatus), | 20 (r'/patch-status/(.*)/(.*)', PatchStatus), |
| 25 (r'/patch-summary/(.*)/(.*)', PatchSummary), | 21 (r'/patch-summary/(.*)/(.*)', PatchSummary), |
| 26 (r'/patch-timeline/(.*)/(.*)', PatchTimeline), | |
| 27 (r'/patch-timeline-data/(.*)/(.*)', PatchTimelineData), | |
| 28 (r'/post', Post), | 22 (r'/post', Post), |
| 29 (r'/stats/(highest|lowest)/(.*)/(.*)', StatsDataPoints), | 23 (r'/stats/(highest|lowest)/(.*)/(.*)', StatsDataPoints), |
| 30 (r'/stats/(.*)/(.*)', StatsViewer), | 24 (r'/stats/(.*)/(.*)', StatsViewer), |
| 31 ] | 25 ] |
| 32 | 26 |
| 33 app = webapp2.WSGIApplication(handlers, debug=True) | 27 app = webapp2.WSGIApplication(handlers, debug=True) |
| 34 gae_ts_mon.initialize(app) | 28 gae_ts_mon.initialize(app) |
| OLD | NEW |