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

router = DefaultRouter()
router.register(r"tasks", TaskViewSet, basename="task")
router.register(r"messages", MessageViewSet, basename="message")
router.register(r"approvals", ApprovalViewSet, basename="approval")

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