Add BlockDeviceSerializer and DeviceBlockAPIView for blocking devices

This commit is contained in:
2025-04-06 21:38:41 +05:00
parent a8adddfda4
commit b415d8f35b
3 changed files with 50 additions and 0 deletions

View File

@ -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(),