| OLD | NEW |
| 1 # Copyright 2014 The LUCI 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 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 """Exports a function that creates WSGI app with Auth routes (API and UI).""" | 5 """Exports a function that creates WSGI app with Auth routes (API and UI).""" |
| 6 | 6 |
| 7 import webapp2 | 7 import webapp2 |
| 8 | 8 |
| 9 from . import rest_api | 9 from . import rest_api |
| 10 from . import ui | 10 from . import ui |
| 11 from .. import change_log | 11 from .. import change_log |
| 12 | 12 |
| 13 # Part of public API of 'auth' component, exposed by this module. | 13 # Part of public API of 'auth' component, exposed by this module. |
| 14 __all__ = ['create_wsgi_application'] | 14 __all__ = ['create_wsgi_application'] |
| 15 | 15 |
| 16 | 16 |
| 17 def create_wsgi_application(debug=False): | 17 def create_wsgi_application(debug=False): |
| 18 routes = [] | 18 routes = [] |
| 19 routes.extend(rest_api.get_rest_api_routes()) | 19 routes.extend(rest_api.get_rest_api_routes()) |
| 20 routes.extend(ui.get_ui_routes()) | 20 routes.extend(ui.get_ui_routes()) |
| 21 routes.extend(change_log.get_backend_routes()) | 21 routes.extend(change_log.get_backend_routes()) |
| 22 return webapp2.WSGIApplication(routes, debug=debug) | 22 return webapp2.WSGIApplication(routes, debug=debug) |
| OLD | NEW |