mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 09:50:05 +00:00
Initial commit
This commit is contained in:
26
devices/urls.py
Normal file
26
devices/urls.py
Normal file
@ -0,0 +1,26 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path(
|
||||
"",
|
||||
views.DeviceListCreateAPIView.as_view(),
|
||||
name="device-list",
|
||||
),
|
||||
path(
|
||||
"<int:pk>/",
|
||||
views.DeviceDetailAPIView.as_view(),
|
||||
name="device-detail",
|
||||
),
|
||||
path(
|
||||
"<int:pk>/update/",
|
||||
views.DeviceUpdateAPIView.as_view(),
|
||||
name="device-edit",
|
||||
),
|
||||
path(
|
||||
"<int:pk>/delete/",
|
||||
views.DeviceDestroyAPIView.as_view(),
|
||||
name="device-delete",
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user