"""
URL routing для materials API.
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    MaterialViewSet,
    MaterialFolderViewSet,
    MaterialTagViewSet,
    StorageQuotaViewSet
)

router = DefaultRouter()
router.register(r'materials', MaterialViewSet, basename='material')
router.register(r'folders', MaterialFolderViewSet, basename='materialfolder')
router.register(r'tags', MaterialTagViewSet, basename='materialtag')
router.register(r'quotas', StorageQuotaViewSet, basename='storagequota')

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