2019-07-24 22:27:14 +02:00
|
|
|
from django.urls import path
|
2017-12-25 13:31:29 +01:00
|
|
|
|
2019-07-24 22:27:14 +02:00
|
|
|
from . import views
|
2017-12-25 13:31:29 +01:00
|
|
|
|
|
|
|
urlpatterns = [
|
2019-07-25 20:35:22 +02:00
|
|
|
path('', views.CustomerListView.as_view(), name='customers'),
|
2019-07-25 20:34:52 +02:00
|
|
|
path('customer/<int:pk>/', views.CustomerDetailView.as_view(),
|
|
|
|
name='customer'),
|
2019-07-25 20:35:22 +02:00
|
|
|
path('customer/<int:customer_id>/computers', views.ComputerListView.as_view(),
|
2019-07-24 22:27:14 +02:00
|
|
|
name='computers'),
|
2019-07-25 20:35:22 +02:00
|
|
|
path('device/<int:device_id>/', views.device_detail_view, name='device'),
|
|
|
|
path('computer/<int:computer_id>/', views.computer_detail_view,
|
2019-07-24 22:38:19 +02:00
|
|
|
name='computer'),
|
2019-07-25 20:42:09 +02:00
|
|
|
path('customer/<int:customer_id>/devices/', views.DeviceListView.as_view(),
|
2019-07-24 22:56:08 +02:00
|
|
|
name='devices'),
|
2017-12-25 13:31:29 +01:00
|
|
|
]
|