mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 09:50:05 +00:00
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