17 lines
586 B
Python
17 lines
586 B
Python
from django.urls import path, include
|
|
from custom_auth import views
|
|
from rest_framework_simplejwt.views import (
|
|
TokenObtainPairView,
|
|
TokenRefreshView,
|
|
TokenVerifyView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path('', include('rest_framework.urls')),
|
|
# path('token/', views.CustomAuthToken.as_view()),
|
|
path('register/', views.RegisterView.as_view()),
|
|
path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
|
|
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
|
path('token/verify/', TokenVerifyView.as_view(), name='token_verify'),
|
|
]
|