aboutsummaryrefslogtreecommitdiff
path: root/app/urls.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-05-13 15:24:05 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-05-13 15:24:05 +0200
commit603a49cad36ab9b97e5d7aba9c025485f25ed2b9 (patch)
tree500efd170b78df56abaf7964c89182b29f810018 /app/urls.py
parentb59937dc214af1e75dd7ad5c7d5781dc7dc4a0b8 (diff)
First implementation of the CountHandler.
* Implement a /count API url to count items in the database.
Diffstat (limited to 'app/urls.py')
-rw-r--r--app/urls.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/urls.py b/app/urls.py
index 90cec3e..5cf4f8c 100644
--- a/app/urls.py
+++ b/app/urls.py
@@ -22,6 +22,7 @@ from handlers import (
DefConfHandler,
JobHandler,
SubscriptionHandler,
+ CountHandler,
)
_JOB_URL = url(r'/api/job(?P<sl>/)?(?P<id>.*)', JobHandler, name='job')
@@ -34,9 +35,13 @@ _SUBSCRIPTION_URL = url(
name='subscription',
)
_BOOT_URL = url(r'/api/boot(?P<sl>/)?(?P<id>.*)', BootHandler, name='boot')
+_COUNT_URL = url(
+ r'/api/count(?P<sl>/)?(?P<collection>.*)', CountHandler, name='count'
+)
APP_URLS = [
_BOOT_URL,
+ _COUNT_URL,
_DEFCONF_URL,
_JOB_URL,
_SUBSCRIPTION_URL,