auth works now
This commit is contained in:
@ -1,8 +1,16 @@
|
||||
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/', 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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user