Commit fef2152b authored by Élie Bouttier's avatar Élie Bouttier

url -> path

parent 6f6a1b21
......@@ -30,7 +30,7 @@ urlpatterns = [
if settings.DEBUG and 'debug_toolbar' in settings.INSTALLED_APPS:
import debug_toolbar
urlpatterns += [
url(r'^__debug__/', include(debug_toolbar.urls)),
path('__debug__/', include(debug_toolbar.urls)),
]
......
from django.conf.urls import url
from django.urls import path, re_path
from . import views
urlpatterns = [
url(r'^services/(?P<pk>[0-9]+)/$', views.ServiceDetail.as_view(), name='service-detail'),
url(r'^api/fastpinger/$', views.fastpinger, name='fastpinger'),
url(r'^api/routes/(?:(?P<route>[\w-]+)/)?$', views.routes, name='routes'),
url(r'^api/architecture/switch/$', views.architecture_switch, name='archi-switch'),
url(r'^api/architecture/ip/$', views.architecture_ip, name='archi-ip'),
path('services/<int:pk>/', views.ServiceDetail.as_view(), name='service-detail'),
path('api/fastpinger/', views.fastpinger, name='fastpinger'),
re_path(r'^api/routes/(?:(?P<route>[\w-]+)/)?$', views.routes, name='routes'), # TODO: path_re => path
path('api/architecture/switch/', views.architecture_switch, name='archi-switch'),
path('api/architecture/ip/', views.architecture_ip, name='archi-ip'),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment