All checks were successful
Build And Test / build-and-push (push) Successful in 1m54s
13 lines
632 B
Python
13 lines
632 B
Python
from django.urls import path
|
|
from .views import RegisterView, MeView, CustomTokenObtainPairView
|
|
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView, TokenVerifyView
|
|
|
|
urlpatterns = [
|
|
path('register/', RegisterView.as_view(), name='register'),
|
|
# path('login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
|
|
path('login/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
|
|
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
|
path('verify/', TokenVerifyView.as_view(), name='token_verify'),
|
|
path('me/', MeView.as_view(), name='me'),
|
|
]
|