mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-02-22 08:32:01 +00:00
27 lines
527 B
Python
27 lines
527 B
Python
|
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",
|
||
|
),
|
||
|
]
|