from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'tickets', views.SupportTicketViewSet, basename='ticket')
router.register(r'categories', views.TicketCategoryViewSet, basename='category')
router.register(r'statuses', views.TicketStatusViewSet, basename='status')
router.register(r'priorities', views.TicketPriorityViewSet, basename='priority')
router.register(r'knowledge-base-categories', views.KnowledgeBaseCategoryViewSet, basename='kb-category')
router.register(r'knowledge-base', views.KnowledgeBaseArticleViewSet, basename='kb-article')
router.register(r'settings', views.SupportSettingsViewSet, basename='settings')

urlpatterns = [
    path('', include(router.urls)),
]

