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

app_name = 'accounts'

urlpatterns = [
    # JWT Token endpoints
    path('login/', views.login_view, name='login'),  # Custom login with user data
    path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),

    # Registration
    path('register/', views.RegisterView.as_view(), name='register'),

    # Profile management
    path('profile/', views.get_user_profile, name='profile'),
    path('profile/update/', views.update_user_profile, name='profile_update'),
    path('change-password/', views.change_password, name='change_password'),
]







