aboutsummaryrefslogtreecommitdiff
path: root/app/urls.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-11-24 17:54:02 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-11-24 18:00:55 +0100
commite2605aa619872fd71b97a22a405a54fbde4c7477 (patch)
tree9f5876b8de146660ad37e3ad16545d8bb2af84ca /app/urls.py
parent076cb88845f0c53d1e45ce172e4bfb1507debb06 (diff)
Add new /version handler.
* Implement a simple handler that accepts GET request to provide the version number of the backend. Change-Id: I6312570f9e91ae64fef07033c90be6e93e176fb4
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 1d598b4..269e15f 100644
--- a/app/urls.py
+++ b/app/urls.py
@@ -26,6 +26,7 @@ import handlers.job
import handlers.lab
import handlers.subscription
import handlers.token
+import handlers.version
_JOB_URL = url(
@@ -61,6 +62,9 @@ _BISECT_URL = url(
_LAB_URL = url(
r"/lab(?P<sl>/)?(?P<id>.*)", handlers.lab.LabHandler, name="lab"
)
+_VERSION_URL = url(
+ r"/version", handlers.version.VersionHandler, name="version"
+)
APP_URLS = [
_BATCH_URL,
@@ -72,4 +76,5 @@ APP_URLS = [
_LAB_URL,
_SUBSCRIPTION_URL,
_TOKEN_URL,
+ _VERSION_URL,
]