| 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 # Pylint doesn't like endpoints. | 5 # Pylint doesn't like endpoints. |
| 6 # pylint: disable=C0322,R0201 | 6 # pylint: disable=C0322,R0201 |
| 7 | 7 |
| 8 import endpoints | 8 import endpoints |
| 9 from protorpc import message_types | 9 from protorpc import message_types |
| 10 from protorpc import messages | 10 from protorpc import messages |
| 11 from protorpc import remote | 11 from protorpc import remote |
| 12 | 12 |
| 13 from components import auth | 13 from components import auth |
| (...skipping 24 matching lines...) Expand all Loading... |
| 38 message_types.VoidMessage, | 38 message_types.VoidMessage, |
| 39 message_types.VoidMessage, | 39 message_types.VoidMessage, |
| 40 name='forbidden', | 40 name='forbidden', |
| 41 http_method='GET') | 41 http_method='GET') |
| 42 @auth.require(lambda: False) | 42 @auth.require(lambda: False) |
| 43 def forbidden(self, _request): | 43 def forbidden(self, _request): |
| 44 pass | 44 pass |
| 45 | 45 |
| 46 | 46 |
| 47 app = endpoints.api_server([TestingServiceApi]) | 47 app = endpoints.api_server([TestingServiceApi]) |
| OLD | NEW |