| 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.index import Index | 9 from handlers.index import Index |
| 10 from handlers.patch_status import PatchStatus, PatchStatusV2 | 10 from handlers.patch_status import PatchStatus, PatchStatusV2 |
| 11 from handlers.patch_summary import PatchSummary, PatchSummaryV2 | 11 from handlers.patch_summary import PatchSummary, PatchSummaryV2 |
| 12 from handlers.post import Post | 12 from handlers.post import Post |
| 13 from handlers.recent import Recent |
| 13 from handlers.stats_viewer import StatsViewer | 14 from handlers.stats_viewer import StatsViewer |
| 14 from handlers.stats_data_points import StatsDataPoints | 15 from handlers.stats_data_points import StatsDataPoints |
| 15 | 16 |
| 16 handlers = [ | 17 handlers = [ |
| 17 (r'/', Index), | 18 (r'/', Index), |
| 19 (r'/recent', Recent), |
| 18 (r'/admin/(.*)', AdminDispatch), | 20 (r'/admin/(.*)', AdminDispatch), |
| 19 (r'/patchset/(.*)/(.*)', PatchStatus), # Legacy URL for old links. | 21 (r'/patchset/(.*)/(.*)', PatchStatus), # Legacy URL for old links. |
| 20 (r'/patch-status/(.*)/(.*)', PatchStatus), | 22 (r'/patch-status/(.*)/(.*)', PatchStatus), |
| 21 (r'/patch-summary/(.*)/(.*)', PatchSummary), | 23 (r'/patch-summary/(.*)/(.*)', PatchSummary), |
| 22 (r'/v2/patch-status/(.*)/(.*)/(.*)', PatchStatusV2), | 24 (r'/v2/patch-status/(.*)/(.*)/(.*)', PatchStatusV2), |
| 23 (r'/v2/patch-summary/(.*)/(.*)/(.*)', PatchSummaryV2), | 25 (r'/v2/patch-summary/(.*)/(.*)/(.*)', PatchSummaryV2), |
| 24 (r'/post', Post), | 26 (r'/post', Post), |
| 25 (r'/stats/(highest|lowest)/(.*)/(.*)', StatsDataPoints), | 27 (r'/stats/(highest|lowest)/(.*)/(.*)', StatsDataPoints), |
| 26 (r'/stats/(.*)/(.*)', StatsViewer), | 28 (r'/stats/(.*)/(.*)', StatsViewer), |
| 27 ] | 29 ] |
| 28 | 30 |
| 29 app = webapp2.WSGIApplication(handlers, debug=True) | 31 app = webapp2.WSGIApplication(handlers, debug=True) |
| 30 gae_ts_mon.initialize(app) | 32 gae_ts_mon.initialize(app) |
| OLD | NEW |