| OLD | NEW |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 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 """Internal bot API handlers.""" | 5 """Internal bot API handlers.""" |
| 6 | 6 |
| 7 import base64 | 7 import base64 |
| 8 import json | 8 import json |
| 9 import logging | 9 import logging |
| 10 import re | 10 import re |
| 11 | 11 |
| 12 import webob | 12 import webob |
| 13 import webapp2 | 13 import webapp2 |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 ('/swarming/api/v1/bot/poll', BotPollHandler), | 692 ('/swarming/api/v1/bot/poll', BotPollHandler), |
| 693 ('/swarming/api/v1/bot/server_ping', ServerPingHandler), | 693 ('/swarming/api/v1/bot/server_ping', ServerPingHandler), |
| 694 ('/swarming/api/v1/bot/task_update', BotTaskUpdateHandler), | 694 ('/swarming/api/v1/bot/task_update', BotTaskUpdateHandler), |
| 695 ('/swarming/api/v1/bot/task_update/<task_id:[a-f0-9]+>', | 695 ('/swarming/api/v1/bot/task_update/<task_id:[a-f0-9]+>', |
| 696 BotTaskUpdateHandler), | 696 BotTaskUpdateHandler), |
| 697 ('/swarming/api/v1/bot/task_error', BotTaskErrorHandler), | 697 ('/swarming/api/v1/bot/task_error', BotTaskErrorHandler), |
| 698 ('/swarming/api/v1/bot/task_error/<task_id:[a-f0-9]+>', | 698 ('/swarming/api/v1/bot/task_error/<task_id:[a-f0-9]+>', |
| 699 BotTaskErrorHandler), | 699 BotTaskErrorHandler), |
| 700 ] | 700 ] |
| 701 return [webapp2.Route(*i) for i in routes] | 701 return [webapp2.Route(*i) for i in routes] |
| OLD | NEW |