from django.urls import path from rest_framework_simplejwt.views import ( TokenObtainPairView, TokenRefreshView, TokenVerifyView, ) from apps.account.views.auth_views import ( RegisterView, UserMeView, VerificationDocumentListView, PasswordRecoverView, PasswordResetView, ) urlpatterns = [ # SimpleJWT Token Lifecycle path('token/', TokenObtainPairView.as_view(), name='auth_token_obtain_pair'), path('token/refresh/', TokenRefreshView.as_view(), name='auth_token_refresh'), path('token/verify/', TokenVerifyView.as_view(), name='auth_token_verify'), # Registration & Profile path('register/', RegisterView.as_view(), name='auth_register'), path('me/', UserMeView.as_view(), name='auth_me'), # Verification Documents path('documents/', VerificationDocumentListView.as_view(), name='auth_documents'), # Password Recovery path('recover-password/', PasswordRecoverView.as_view(), name='auth_recover_password'), path('reset-password/', PasswordResetView.as_view(), name='auth_reset_password'), ]