OLD | NEW |
1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 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 under the Apache License, Version 2.0 |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 """Main entry point for Swarming service. | 5 """Main entry point for Swarming service. |
6 | 6 |
7 This file contains the URL handlers for all the Swarming service URLs, | 7 This file contains the URL handlers for all the Swarming service URLs, |
8 implemented using the webapp2 framework. | 8 implemented using the webapp2 framework. |
9 """ | 9 """ |
10 | 10 |
11 import collections | 11 import collections |
12 import datetime | 12 import datetime |
13 import itertools | 13 import itertools |
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 # If running on a local dev server, allow bots to connect without prior | 788 # If running on a local dev server, allow bots to connect without prior |
789 # groups configuration. Useful when running smoke test. | 789 # groups configuration. Useful when running smoke test. |
790 if utils.is_local_dev_server(): | 790 if utils.is_local_dev_server(): |
791 acl.bootstrap_dev_server_acls() | 791 acl.bootstrap_dev_server_acls() |
792 | 792 |
793 # TODO(maruel): Split backend into a separate module. For now add routes here. | 793 # TODO(maruel): Split backend into a separate module. For now add routes here. |
794 routes.extend(handlers_backend.get_routes()) | 794 routes.extend(handlers_backend.get_routes()) |
795 routes.extend(handlers_bot.get_routes()) | 795 routes.extend(handlers_bot.get_routes()) |
796 | 796 |
797 return webapp2.WSGIApplication(routes, debug=debug) | 797 return webapp2.WSGIApplication(routes, debug=debug) |
OLD | NEW |