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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 ('/swarming/api/v1/bot/poll', BotPollHandler), | 705 ('/swarming/api/v1/bot/poll', BotPollHandler), |
706 ('/swarming/api/v1/bot/server_ping', ServerPingHandler), | 706 ('/swarming/api/v1/bot/server_ping', ServerPingHandler), |
707 ('/swarming/api/v1/bot/task_update', BotTaskUpdateHandler), | 707 ('/swarming/api/v1/bot/task_update', BotTaskUpdateHandler), |
708 ('/swarming/api/v1/bot/task_update/<task_id:[a-f0-9]+>', | 708 ('/swarming/api/v1/bot/task_update/<task_id:[a-f0-9]+>', |
709 BotTaskUpdateHandler), | 709 BotTaskUpdateHandler), |
710 ('/swarming/api/v1/bot/task_error', BotTaskErrorHandler), | 710 ('/swarming/api/v1/bot/task_error', BotTaskErrorHandler), |
711 ('/swarming/api/v1/bot/task_error/<task_id:[a-f0-9]+>', | 711 ('/swarming/api/v1/bot/task_error/<task_id:[a-f0-9]+>', |
712 BotTaskErrorHandler), | 712 BotTaskErrorHandler), |
713 ] | 713 ] |
714 return [webapp2.Route(*i) for i in routes] | 714 return [webapp2.Route(*i) for i in routes] |
OLD | NEW |