OLD | NEW |
1 # Copyright 2014 The Swarming Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed by the Apache v2.0 license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """This modules is imported by AppEngine and defines the 'app' object. | 5 """This modules is imported by AppEngine and defines the 'app' object. |
6 | 6 |
7 It is a separate file so that application bootstrapping code like ereporter2, | 7 It is a separate file so that application bootstrapping code like ereporter2, |
8 that shouldn't be done in unit tests, can be done safely. This file must be | 8 that shouldn't be done in unit tests, can be done safely. This file must be |
9 tested via a smoke test. | 9 tested via a smoke test. |
10 """ | 10 """ |
11 | 11 |
(...skipping 17 matching lines...) Expand all Loading... |
29 ereporter2.register_formatter() | 29 ereporter2.register_formatter() |
30 | 30 |
31 # App that serves HTML pages and old API. | 31 # App that serves HTML pages and old API. |
32 frontend = handlers_frontend.create_application(False) | 32 frontend = handlers_frontend.create_application(False) |
33 # App that serves endpoints APIs. | 33 # App that serves endpoints APIs. |
34 api = endpoints.api_server([auth.AuthService, config.ConfigApi]) | 34 api = endpoints.api_server([auth.AuthService, config.ConfigApi]) |
35 return frontend, api | 35 return frontend, api |
36 | 36 |
37 | 37 |
38 frontend_app, endpoints_app = create_applications() | 38 frontend_app, endpoints_app = create_applications() |
OLD | NEW |