network_inventory/network_inventory/inventory/urls.py

16 lines
552 B
Python
Raw Normal View History

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-24 22:27:14 +02:00
path('', views.CustomerList.as_view(), name='customers'),
path('customer/<int:customer_id>/', views.ComputerList.as_view(),
name='computers'),
path('device/<int:device_id>/', views.device_details, name='device'),
2019-07-24 22:38:19 +02:00
path('computer/<int:computer_id>/', views.computer_details,
name='computer'),
2019-07-24 22:27:14 +02:00
path('devices/', views.DeviceList.as_view(), name='devices'),
path('customer/<int:customer_id>/lists/', views.list_of_lists,
name='lists'),
2017-12-25 13:31:29 +01:00
]