Files
crmApi/apps/jwt_auth/urls.py
T
2026-10-08 16:37:45 +03:30

19 lines
718 B
Python

from django.urls import path
from apps.jwt_auth.views import (
CustomTokenRefreshView,
CustomTokenObtainPairView,
LoginByUserView,
LoginByMobileView,
VerifyMobileAndGetTokenView,
LogoutView,
)
urlpatterns = [
path('logout/', LogoutView.as_view(), name='logout'),
path('login/username/', LoginByUserView.as_view(), name='login_by_username'),
path('login/mobile/', LoginByMobileView.as_view(), name='login_by_mobile'),
path('login/mobile/verify/', VerifyMobileAndGetTokenView.as_view(), name='verify_mobile'),
path('token/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
path('token/refresh/', CustomTokenRefreshView.as_view(), name='token_refresh'),
]