network_inventory/network_inventory/inventory/urls.py
2019-07-28 22:02:07 +02:00

20 lines
787 B
Python

from django.urls import path
from . import views
urlpatterns = [
path('', views.CustomerListView.as_view(), name='customers'),
path('customer/<int:pk>/', views.CustomerDetailView.as_view(),
name='customer'),
path('customer/<int:customer_id>/computers',
views.ComputerListView.as_view(), name='computers'),
path('device/<int:device_id>/', views.device_detail_view, name='device'),
path('computer/<int:computer_id>/', views.computer_detail_view,
name='computer'),
path('customer/<int:customer_id>/devices/', views.DeviceListView.as_view(),
name='devices'),
path('customer/<int:customer_id>/nets/', views.NetListView.as_view(),
name='nets'),
path('net/<int:pk>/', views.NetDetailView.as_view(), name='net'),
]