Add BlockDeviceSerializer and DeviceBlockAPIView for blocking devices
This commit is contained in:
@@ -18,6 +18,11 @@ urlpatterns = [
|
||||
views.DeviceUpdateAPIView.as_view(),
|
||||
name="device-edit",
|
||||
),
|
||||
path(
|
||||
"<int:pk>/block/",
|
||||
views.DeviceBlockAPIView.as_view(),
|
||||
name="device-block",
|
||||
),
|
||||
path(
|
||||
"<int:pk>/delete/",
|
||||
views.DeviceDestroyAPIView.as_view(),
|
||||
|
||||
Reference in New Issue
Block a user