summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-13 13:58:40 -0600
committerDan McGee <dan@archlinux.org>2010-12-13 13:58:40 -0600
commit7b969772cc9f280255ef51d55f1e1ed9123af1fd (patch)
tree9e56bae47fc3b02a77bf31f3422456bdb85ac65d /urls.py
parent7a320edae13ccf7db48f44137a5d20a1bffe90a5 (diff)
downloadarchweb-7b969772cc9f280255ef51d55f1e1ed9123af1fd.tar.gz
archweb-7b969772cc9f280255ef51d55f1e1ed9123af1fd.zip
Add a mirror status JSON view
Requested in FS#21144. This should provide most if not all of the data that was provided on the archlinux.de website, although there are some differences in what is returned to the user. It is nearly the same data as that provided in the HTML view, the difference being things are a bit more machine-friendly and the list is not split into good and bad portions. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index 5c792035..45dc8065 100644
--- a/urls.py
+++ b/urls.py
@@ -73,6 +73,7 @@ urlpatterns = patterns('',
(r'^mirrors/$', 'mirrors.views.mirrors', {}, 'mirrors-list'),
(r'^mirrors/status/$', 'mirrors.views.status', {}, 'mirror-status'),
+ (r'^mirrors/status/json/$', 'mirrors.views.status_json', {}, 'mirror-status-json'),
(r'^mirrors/(?P<name>[\.\-\w]+)/$', 'mirrors.views.mirror_details'),
(r'^mirrorlist/$', 'mirrors.views.generate_mirrorlist', {}, 'mirrorlist'),