You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
1.1 KiB

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'),
]