"""
URL patterns for account management API
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .account_views import (
    AccountSettingsViewSet,
    TeamManagementViewSet,
    UsageAnalyticsViewSet
)

router = DefaultRouter()

urlpatterns = [
    # Account settings (non-router endpoints for simplified access)
    path('settings/', AccountSettingsViewSet.as_view({'get': 'retrieve', 'patch': 'partial_update'}), name='account-settings'),
    
    # Team management
    path('team/', TeamManagementViewSet.as_view({'get': 'list', 'post': 'create'}), name='team-list'),
    path('team/<int:pk>/', TeamManagementViewSet.as_view({'delete': 'destroy'}), name='team-detail'),
    
    # Usage analytics
    path('usage/analytics/', UsageAnalyticsViewSet.as_view({'get': 'overview'}), name='usage-analytics'),
    
    path('', include(router.urls)),
]
