diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2014-05-13 15:24:05 +0200 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2014-05-13 15:24:05 +0200 |
commit | 603a49cad36ab9b97e5d7aba9c025485f25ed2b9 (patch) | |
tree | 500efd170b78df56abaf7964c89182b29f810018 /app/urls.py | |
parent | b59937dc214af1e75dd7ad5c7d5781dc7dc4a0b8 (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.py | 5 |
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, |