from django.urls import path
from rest_framework_simplejwt.views import TokenRefreshView
from . import views

urlpatterns = [
    # Auth
    path('auth/login/', views.LoginView.as_view(), name='login'),
    path('auth/logout/', views.LogoutView.as_view(), name='logout'),
    path('auth/refresh/', TokenRefreshView.as_view(), name='token-refresh'),
    path('auth/password/change/', views.PasswordChangeView.as_view(), name='password-change'),

    # Profile
    path('profile/', views.ProfileView.as_view(), name='profile'),

    # User Management (HR/Admin + CEO)
    path('users/', views.UserListCreateView.as_view(), name='user-list'),
    path('users/<int:pk>/', views.UserDetailView.as_view(), name='user-detail'),

    # Team (public, no salary)
    path('team/', views.TeamListView.as_view(), name='team-list'),
    path('team/rates/', views.TeamMemberRatesView.as_view(), name='team-rates'),
    
    # Site settings
    path('site-settings/', views.SiteSettingsView.as_view(), name='site-settings'),
]
