api_urls.py 676 Bytes
Newer Older
Stauros Kroustouris's avatar
initial  
Stauros Kroustouris committed
1
2
# -*- coding: utf-8 -*- vim:encoding=utf-8:
from django.conf.urls import patterns, url
3
from mon_map.views import api
Stauros Kroustouris's avatar
initial  
Stauros Kroustouris committed
4
5
6
7

urlpatterns = patterns(
    '',
    url(r'^$', api.metro_map_json, name='metro-map'),
8
    url(r'^(?P<fake>f?)?links/(?P<from_node>[\w\d\-\.]+)/to/(?P<to_node>[\w\d\-\.]+)/$', api.link, name='link'),
Stauros Kroustouris's avatar
initial  
Stauros Kroustouris committed
9
10
11
12
13
    url(r'^links/(?P<from_node>[\w\d\-\.]+)/to/(?P<to_node>[\w\d\-\.]+)/separate/$', api.link, {'separate': True}, name='link-separate'),
    url(r'^load/(?P<from_node>[\w\d\-\.]+)/to/(?P<to_node>[\w\d\-\.]+)/$', api.link_load, name='load'),
    url(r'^load/$', api.load, name='load-total'),
    url(r'^bandwidth/$', api.bandwidth, name='bandwidth-total'),
)