aboutsummaryrefslogtreecommitdiff
path: root/app/urls.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-10-24 19:00:38 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-10-24 19:00:38 +0200
commit63713dd9355f8da1e2c39031bde54f67d9bfd10c (patch)
tree5ad03e0c15b5d94f83f43577af457bd1f3b7f85c /app/urls.py
parentdc92c314b74d16afbf48a40edc6d23c0b650094d (diff)
bisect: Implement bisect handler.
* Implement a new bisect handler that will perform bisect operation on the collections. At the moment the only supported collection is 'boot'. * Add celery task to execute the elaboration. * Add tests for the handler. * Add necessary variables. Change-Id: Iacaac5ec3c4c8aaa80ff87064564ac22ffc7e9f3
Diffstat (limited to 'app/urls.py')
-rw-r--r--app/urls.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/urls.py b/app/urls.py
index b737c70..f12d927 100644
--- a/app/urls.py
+++ b/app/urls.py
@@ -17,13 +17,14 @@
from tornado.web import url
+from handlers.bisect import BisectHandler
+from handlers.batch import BatchHandler
from handlers.boot import BootHandler
from handlers.count import CountHandler
from handlers.defconf import DefConfHandler
from handlers.job import JobHandler
from handlers.subscription import SubscriptionHandler
from handlers.token import TokenHandler
-from handlers.batch import BatchHandler
_JOB_URL = url(r'/api/job(?P<sl>/)?(?P<id>.*)', JobHandler, name='job')
@@ -45,13 +46,19 @@ _TOKEN_URL = url(
_BATCH_URL = url(
r'/api/batch', BatchHandler, name='batch'
)
+_BISECT_URL = url(
+ r"/api/bisect/(?P<collection>.*)/(?P<id>.*)",
+ BisectHandler,
+ name="bisect"
+)
APP_URLS = [
+ _BATCH_URL,
+ _BISECT_URL,
_BOOT_URL,
_COUNT_URL,
_DEFCONF_URL,
_JOB_URL,
_SUBSCRIPTION_URL,
_TOKEN_URL,
- _BATCH_URL,
]