diff options
author | Andy Doan <andy.doan@linaro.org> | 2014-09-04 17:18:23 -0500 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2014-09-08 11:17:02 -0500 |
commit | fb2e01c1cf500c8f52add181ed807b8fa15cf456 (patch) | |
tree | 13b3ca5134ba065803a3a615fa50afcfafcaf98c /urls.py | |
parent | c97c0e4ec30fc5304134026886e7ebbf557a8d62 (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.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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'), |