OLD | NEW |
1 # Copyright 2013 The Swarming 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 by the Apache v2.0 license that can be |
3 # found in the LICENSE file. | 3 # 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 |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 # If running on a local dev server, allow bots to connect without prior | 817 # If running on a local dev server, allow bots to connect without prior |
818 # groups configuration. Useful when running smoke test. | 818 # groups configuration. Useful when running smoke test. |
819 if utils.is_local_dev_server(): | 819 if utils.is_local_dev_server(): |
820 acl.bootstrap_dev_server_acls() | 820 acl.bootstrap_dev_server_acls() |
821 | 821 |
822 # TODO(maruel): Split backend into a separate module. For now add routes here. | 822 # TODO(maruel): Split backend into a separate module. For now add routes here. |
823 routes.extend(handlers_backend.get_routes()) | 823 routes.extend(handlers_backend.get_routes()) |
824 routes.extend(handlers_bot.get_routes()) | 824 routes.extend(handlers_bot.get_routes()) |
825 | 825 |
826 return webapp2.WSGIApplication(routes, debug=debug) | 826 return webapp2.WSGIApplication(routes, debug=debug) |
OLD | NEW |