from django.urls import path
from .views import  CustomerLanguageView, DeviceMoistureThresholdListCreateAPI,DeviceMoistureThresholdDetailAPI,DeviceMoistureThresholdByProductTypeAPI,DeviceMoistureThresholdGroupedByProductTypeAPI, GetDefaultBuyerAPIView, GetDefaultFieldAPIView, LanguageDetail, LanguageList, PrivacyPolicyView, SupportCenterJsonHtmlView,TestView
from django.views.decorators.csrf import csrf_protect
from django.contrib.auth.decorators import login_required

urlpatterns = [
    path("core/languages/", LanguageList.as_view(), name="get-all-langauge"),
    path("core/languages/<int:id>/", LanguageDetail.as_view(), name="language-detail"),
    path("core/test/",TestView.as_view(), name="test-view" ),  # Example test view
    path('core/device-thresholds/', DeviceMoistureThresholdListCreateAPI.as_view(), name='device-thresholds-list-create'),
    path('core/device-thresholds/<int:pk>/', DeviceMoistureThresholdDetailAPI.as_view(), name='device-thresholds-detail'),
    path('core/device-thresholds/by-product-type/', DeviceMoistureThresholdByProductTypeAPI.as_view(), name='device-thresholds-by-product-type'),
    path('core/device-thresholds/grouped-by-product-type/', DeviceMoistureThresholdGroupedByProductTypeAPI.as_view(), name='device-thresholds-grouped-by-product-type'),
    path('core/support-center/', SupportCenterJsonHtmlView.as_view(), name='support-center-html'),
    path('core/privacy-policy/', PrivacyPolicyView.as_view(), name='privacy-policy'),
    path('default-field/', GetDefaultFieldAPIView.as_view(), name='default-field'),
    path('default-buyer/', GetDefaultBuyerAPIView.as_view(), name='settings-default-buyer'),
    path('language/', CustomerLanguageView.as_view(), name="customer-language"),
]