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-17 14:23:51 -0500
commit0bdb00d0551e7f0c2850097f54f9c633befb0ab8 (patch)
treee02e966044216264704282bf247176153c1ee3a4 /urls.py
parentfb2e01c1cf500c8f52add181ed807b8fa15cf456 (diff)
apiv2: create api to publish files
Change-Id: Ieaf1ffff87734fcc4b8c585e631a5304ec686e9a
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 9d4a133..6b267be 100644
--- a/urls.py
+++ b/urls.py
@@ -56,6 +56,9 @@ urlpatterns = patterns(
url(r'^api/v2/token/(?P<token>.*)$',
'license_protected_downloads.api.v2.token'),
+ url(r'^api/v2/publish/(?P<path>.*)$',
+ 'license_protected_downloads.api.v2.publish'),
+
# 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'),