Created
March 9, 2021 16:19
-
-
Save therealak12/d29ea4f6473e8d1c88c0442bdcb51f79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.urls import path | |
from rest_framework_simplejwt.views import TokenRefreshView | |
from .views import EmailTokenObtainPairView, RegisterView | |
urlpatterns = [ | |
path('register/', RegisterView.as_view(), name='token_obtain_pair'), | |
path('token/obtain/', EmailTokenObtainPairView.as_view(), name='token_obtain_pair'), | |
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment