diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2015-01-09 16:17:50 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2015-01-09 16:17:50 +0100 |
commit | ebc6f9e06e9328eac55b55ea9d02ceb2c15ae4c0 (patch) | |
tree | 2d9db889c315a8c1a29a05a1fcf2fc7ca588903d /app/urls.py | |
parent | d60be57f0cd61a5ccef5f79128dae7eeab7b3fbf (diff) |
Add /report[s] handler.
* Add new handler to retrieve email reports status information.
Change-Id: Iac0260cfab06e178c8d3b3ba51bce9f5e10d8a92
Diffstat (limited to 'app/urls.py')
-rw-r--r-- | app/urls.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/urls.py b/app/urls.py index 269e15f..a5b9c3b 100644 --- a/app/urls.py +++ b/app/urls.py @@ -24,6 +24,7 @@ import handlers.count import handlers.defconf import handlers.job import handlers.lab +import handlers.report import handlers.subscription import handlers.token import handlers.version @@ -65,6 +66,11 @@ _LAB_URL = url( _VERSION_URL = url( r"/version", handlers.version.VersionHandler, name="version" ) +_REPORT_URL = url( + r"/report[s]?(?P<sl>/)?(?P<id>.*)", + handlers.report.ReportHandler, + name="response" +) APP_URLS = [ _BATCH_URL, @@ -77,4 +83,5 @@ APP_URLS = [ _SUBSCRIPTION_URL, _TOKEN_URL, _VERSION_URL, + _REPORT_URL, ] |