"""
URL routing для board API.
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    BoardViewSet,
    BoardElementViewSet,
    BoardSnapshotViewSet
)

router = DefaultRouter()
router.register(r'boards', BoardViewSet, basename='board')
router.register(r'elements', BoardElementViewSet, basename='boardelement')
router.register(r'snapshots', BoardSnapshotViewSet, basename='boardsnapshot')

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