summaryrefslogtreecommitdiff
path: root/packages/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-14 19:10:16 -0500
committerDan McGee <dan@archlinux.org>2011-06-14 19:10:16 -0500
commitdc9dedaeb075630fa284036fb2f39de3c69004f9 (patch)
tree3f209e683dd4d7e548bc21e97af47527857fb414 /packages/urls.py
parent037f67bb3c0b63239614ece9884b33c2d265b8ae (diff)
Add JSON package details and files views
These are retrieved by adding 'json/' to the normal package details or files view. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/urls.py')
-rw-r--r--packages/urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/urls.py b/packages/urls.py
index e0362fa2..3c2c87b0 100644
--- a/packages/urls.py
+++ b/packages/urls.py
@@ -2,8 +2,9 @@ from django.conf.urls.defaults import include, patterns
package_patterns = patterns('packages.views',
(r'^$', 'details'),
+ (r'^json/$', 'details_json'),
(r'^files/$', 'files'),
- (r'^maintainer/$', 'getmaintainer'),
+ (r'^files/json/$', 'files_json'),
(r'^flag/$', 'flag'),
(r'^flag/done/$', 'flag_confirmed', {}, 'package-flag-confirmed'),
(r'^unflag/$', 'unflag'),