aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2014-08-06 13:59:07 -0500
committerAndy Doan <andy.doan@linaro.org>2014-08-25 13:07:10 -0500
commite3af10ba45428217a0f528b52293a4dea422628f (patch)
tree49899f4659d6930f500ab1aa86682cee6623f564 /urls.py
parent687ccd0b392bf67bf0f67f859123b9e5fe88e55f (diff)
api: move get_license_api and list_files_api to v1.py
This moves all REST API specific changes into v1.py. In order to handle that some functions in views.py had to be moved to common.py so that v1.py could access them (views.py imports v1.py right now so having v1.py import views.py created a circular dependency) Change-Id: I40990a3942536a5b9c3f1bab0dec69b4f74a072b
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/urls.py b/urls.py
index 2f63e38..e79ec72 100644
--- a/urls.py
+++ b/urls.py
@@ -47,10 +47,10 @@ urlpatterns = patterns('',
name='get_textile_files'),
url(r'^api/ls/(?P<path>.*)$',
- 'license_protected_downloads.views.list_files_api'),
+ 'license_protected_downloads.api.v1.list_files_api'),
url(r'^api/license/(?P<path>.*)$',
- 'license_protected_downloads.views.get_license_api'),
+ 'license_protected_downloads.api.v1.get_license_api'),
url(r'^api/request_key$',
'license_protected_downloads.api.v1.api_request_key'),