mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-26 09:09:09 +02:00
20 lines
787 B
Python
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'),
|
|
]
|