from django.urls import path
from .views import GetAllDeviceView, GetDeviceDetailByCodeView, GetDeviceDetailView,GetProductCatelogView, ProductCropMappingsByQuery

from django.views.decorators.csrf import csrf_protect
from django.contrib.auth.decorators import login_required

urlpatterns = [
   path('devices/get-all/', GetAllDeviceView.as_view(), name='get-alldevice'),
   path('devices/getById/<int:id>/', GetDeviceDetailView.as_view(), name='get-device-detail'),
   path('devices/catelog/', GetProductCatelogView.as_view(), name='get-product-catelog'),
   path("devices/by-identifiers/", GetDeviceDetailByCodeView.as_view(), name="product-by-identifiers"),
   path('product-crop-mappings/', ProductCropMappingsByQuery.as_view(),name='product-crop-mappings-query'),
]