2017-12-25 13:31:29 +01:00
|
|
|
from django.conf.urls import url
|
|
|
|
|
2017-12-29 12:33:05 +01:00
|
|
|
from inventory import views
|
2017-12-25 13:31:29 +01:00
|
|
|
|
|
|
|
urlpatterns = [
|
2019-06-10 21:56:21 +02:00
|
|
|
url(r'^$', views.CustomerList.as_view(), name='customers'),
|
|
|
|
url(r'^customer/(?P<customer_id>[0-9]+)/$',
|
|
|
|
views.ComputerList.as_view(),
|
|
|
|
name='computers'),
|
2017-12-25 13:31:29 +01:00
|
|
|
url(r'^device/(?P<device_id>[0-9]+)/$',
|
|
|
|
views.device_details,
|
|
|
|
name='device'),
|
|
|
|
url(r'^computer/(?P<computer_id>[0-9]+)/$',
|
|
|
|
views.computer_details,
|
|
|
|
name='computer'),
|
2017-12-29 12:33:05 +01:00
|
|
|
url(r'^devices/$', views.DeviceList.as_view(), name='devices'),
|
2017-12-25 13:31:29 +01:00
|
|
|
]
|