summaryrefslogtreecommitdiff
path: root/mirrors/urls.py
blob: a41bfdc348d0407ea84e65edc52178fa3c585ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from django.conf.urls import patterns

urlpatterns = patterns('mirrors.views',
    (r'^$',                     'mirrors', {}, 'mirror-list'),
    (r'^status/$',              'status',  {}, 'mirror-status'),
    (r'^status/tier/(?P<tier>\d+)/$', 'status', {}, 'mirror-status-tier'),
    (r'^(?P<name>[\.\-\w]+)/$', 'mirror_details'),
    (r'^(?P<name>[\.\-\w]+)/(?P<url_id>\d+)/$', 'url_details'),
)

urlpatterns += patterns('mirrors.views.api',
    (r'^status/json/$',         'status_json',  {}, 'mirror-status-json'),
    (r'^status/tier/(?P<tier>\d+)/json/$', 'status_json', {}, 'mirror-status-tier-json'),
    (r'^locations/json/$',      'locations_json',  {}, 'mirror-locations-json'),
    (r'^(?P<name>[\.\-\w]+)/json/$', 'mirror_details_json'),
)

# vim: set ts=4 sw=4 et: