aboutsummaryrefslogtreecommitdiff
path: root/app/urls.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-01-13 18:38:14 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-01-13 18:38:14 +0100
commitef0db5c4dfb206d231ca4ff4194b24b83f146e14 (patch)
treeefa665cae4f5fbbbcf91268804eeb29effebf5c1 /app/urls.py
parent7cf44aa79339af94ef20002d64956b2e7596222f (diff)
Add upload handler class and URL.
Change-Id: I0c34d21447e19f80f856edcf42e196e87c26730a
Diffstat (limited to 'app/urls.py')
-rw-r--r--app/urls.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/urls.py b/app/urls.py
index f3098b9..f1e8d1f 100644
--- a/app/urls.py
+++ b/app/urls.py
@@ -27,6 +27,7 @@ import handlers.lab
import handlers.report
import handlers.subscription
import handlers.token
+import handlers.upload
import handlers.version
@@ -71,6 +72,11 @@ _REPORT_URL = url(
handlers.report.ReportHandler,
name="response"
)
+_UPLOAD_URL = url(
+ r"/upload(?P<sl>/)?(?P<path>.*)",
+ handlers.upload.UploadHandler,
+ name="upload"
+)
APP_URLS = [
_BATCH_URL,
@@ -84,4 +90,5 @@ APP_URLS = [
_TOKEN_URL,
_VERSION_URL,
_REPORT_URL,
+ _UPLOAD_URL
]