urls.py 479 B

123456789101112
  1. from django.conf.urls import url
  2. from . import views
  3. urlpatterns = [
  4. url(r'^services/(?P<pk>[0-9]+)/$', views.ServiceDetail.as_view(), name='service-detail'),
  5. url(r'^api/fastpinger/$', views.fastpinger, name='fastpinger'),
  6. url(r'^api/routes/(?:(?P<route>[\w-]+)/)?$', views.routes, name='routes'),
  7. url(r'^api/architecture/switch/$', views.architecture_switch, name='archi-switch'),
  8. url(r'^api/architecture/ip/$', views.architecture_ip, name='archi-ip'),
  9. ]