"""
URL routing для homework API.
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    HomeworkViewSet,
    HomeworkSubmissionViewSet,
    HomeworkFileViewSet,
    HomeworkAIAgentViewSet,
)

router = DefaultRouter()
router.register(r'homeworks', HomeworkViewSet, basename='homework')
router.register(r'submissions', HomeworkSubmissionViewSet, basename='homeworksubmission')
router.register(r'files', HomeworkFileViewSet, basename='homeworkfile')
router.register(r'ai-agents', HomeworkAIAgentViewSet, basename='homeworkaiagent')

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