blob: 8a8b1d53eebc25807707e209e0bdd29f3381ecc2 [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import gae_ts_mon
import webapp2
from handlers.admin_dispatch import AdminDispatch
from handlers.index import Index
from handlers.patch_status import PatchStatus, PatchStatusV2
from handlers.patch_summary import PatchSummary, PatchSummaryV2
from handlers.post import Post
from handlers.recent import Recent
from handlers.stats_viewer import StatsViewer
from handlers.stats_data_points import StatsDataPoints
handlers = [
(r'/', Index),
(r'/recent', Recent),
(r'/admin/(.*)', AdminDispatch),
(r'/patchset/(.*)/(.*)', PatchStatus), # Legacy URL for old links.
(r'/patch-status/(.*)/(.*)', PatchStatus),
(r'/patch-summary/(.*)/(.*)', PatchSummary),
(r'/v2/patch-status/(.*)/(.*)/(.*)', PatchStatusV2),
(r'/v2/patch-summary/(.*)/(.*)/(.*)', PatchSummaryV2),
(r'/post', Post),
(r'/stats/(highest|lowest)/(.*)/(.*)', StatsDataPoints),
(r'/stats/(.*)/(.*)', StatsViewer),
]
app = webapp2.WSGIApplication(handlers, debug=True)
gae_ts_mon.initialize(app)