from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import ApparelItemViewSet, CollectionRecordViewSet, ScanApparelView, ApparelDashboardView

router = DefaultRouter()
router.register(r'items', ApparelItemViewSet, basename='apparel-item')
router.register(r'collections', CollectionRecordViewSet, basename='collection-record')

urlpatterns = [
    path('', include(router.urls)),
    path('scan/', ScanApparelView.as_view(), name='apparel-scan'),
    path('dashboard/', ApparelDashboardView.as_view(), name='apparel-dashboard'),
]
