aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2014-09-04 17:18:23 -0500
committerAndy Doan <andy.doan@linaro.org>2014-09-08 11:17:02 -0500
commitfb2e01c1cf500c8f52add181ed807b8fa15cf456 (patch)
tree13b3ca5134ba065803a3a615fa50afcfafcaf98c /urls.py
parentc97c0e4ec30fc5304134026886e7ebbf557a8d62 (diff)
apiv2: create api for get/create APIToken
This creates a way to list tokens a user owns or create new tokens Change-Id: I04a60292181b0aec7ac371146a8cfecd71a979b4
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index 9678369..9d4a133 100644
--- a/urls.py
+++ b/urls.py
@@ -53,6 +53,9 @@ urlpatterns = patterns(
url(r'^api/license/(?P<path>.*)$',
'license_protected_downloads.api.v1.get_license_api'),
+ url(r'^api/v2/token/(?P<token>.*)$',
+ 'license_protected_downloads.api.v2.token'),
+
# Catch-all. We always return a file (or try to) if it exists.
# This handler does that.
url(r'(?P<path>.*)', 'license_protected_downloads.views.file_server'),