devicehub-django/device/urls.py

12 lines
391 B
Python
Raw Normal View History

2024-07-05 13:32:07 +00:00
from django.urls import path
from device import views
app_name = 'device'
urlpatterns = [
path("add/", views.NewDeviceView.as_view(), name="add"),
2024-07-18 15:21:22 +00:00
path("edit/<int:pk>/", views.EditDeviceView.as_view(), name="edit"),
path("<int:pk>/", views.DetailsView.as_view(), name="details"),
path("<int:pk>/annotation/add", views.AddAnnotationView.as_view(), name="add_annotation"),
2024-07-05 13:32:07 +00:00
]