OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is govered by a BSD-style |
| 3 # license that can be found in the LICENSE file or at |
| 4 # https://developers.google.com/open-source/licenses/bsd |
| 5 |
| 6 """Main program for Monorail. |
| 7 |
| 8 Monorail is an issue tracking tool that is based on the code.google.com |
| 9 issue tracker, but it has been ported to Google AppEngine and Google Cloud SQL. |
| 10 """ |
| 11 |
| 12 import endpoints |
| 13 import logging |
| 14 import webapp2 |
| 15 |
| 16 import gae_ts_mon |
| 17 |
| 18 import registerpages |
| 19 from framework import sorting |
| 20 from services import api_svc_v1 |
| 21 from services import service_manager |
| 22 |
| 23 |
| 24 services = service_manager.set_up_services() |
| 25 sorting.InitializeArtValues(services) |
| 26 registry = registerpages.ServletRegistry() |
| 27 app_routes = registry.Register(services) |
| 28 app = webapp2.WSGIApplication( |
| 29 app_routes, config={'services': services}) |
| 30 gae_ts_mon.initialize(app) |
| 31 |
| 32 endpoints = endpoints.api_server( |
| 33 [api_svc_v1.MonorailApi, api_svc_v1.ClientConfigApi]) |
OLD | NEW |