from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    CarBookingViewSet, ReimbursementViewSet, ReimbursementReceiptViewSet, PaymentRequestViewSet,
    DocumentRequestViewSet, LetterPrefixViewSet, LetterNumberViewSet,
    AnnouncementViewSet, SOPCategoryViewSet, SOPViewSet, InternalGuideViewSet,
    HelpdeskTicketViewSet
)

router = DefaultRouter()
router.register(r"car-bookings", CarBookingViewSet, basename="car-booking")
router.register(r"reimbursements", ReimbursementViewSet, basename="reimbursement")
router.register(r"reimbursement-receipts", ReimbursementReceiptViewSet, basename="reimbursement-receipt")
router.register(r"payment-requests", PaymentRequestViewSet, basename="payment-request")
router.register(r"document-requests", DocumentRequestViewSet, basename="document-request")
router.register(r"letter-prefixes", LetterPrefixViewSet, basename="letter-prefix")
router.register(r"letter-numbers", LetterNumberViewSet, basename="letter-number")
router.register(r"announcements", AnnouncementViewSet, basename="announcement")
router.register(r"sop-categories", SOPCategoryViewSet, basename="sop-category")
router.register(r"sops", SOPViewSet, basename="sop")
router.register(r"internal-guides", InternalGuideViewSet, basename="internal-guide")
router.register(r"helpdesk-tickets", HelpdeskTicketViewSet, basename="helpdesk-ticket")

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