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 # 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 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 HostTokenRequest, | 57 HostTokenRequest, |
58 HostTokenRespones, | 58 HostTokenRespones, |
59 name='create_host_token', | 59 name='create_host_token', |
60 http_method='POST') | 60 http_method='POST') |
61 @auth.public | 61 @auth.public |
62 def create_host_token(self, request): | 62 def create_host_token(self, request): |
63 return HostTokenRespones(host_token=auth.create_host_token(request.host)) | 63 return HostTokenRespones(host_token=auth.create_host_token(request.host)) |
64 | 64 |
65 | 65 |
66 app = endpoints.api_server([TestingServiceApi]) | 66 app = endpoints.api_server([TestingServiceApi]) |
OLD | NEW |