urls.py 473 B

12345678910111213141516
  1. from django.urls import path
  2. from . import views
  3. from rest_framework_simplejwt.views import ( TokenRefreshView)
  4. from .views import MyTokenObtainPairView
  5. app_name = 'auth'
  6. #Шаблоны ссылок данного приложения
  7. urlpatterns = [
  8. path('token/', MyTokenObtainPairView.as_view(), name='token_obtain_pair'),
  9. path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
  10. path('register/',views.register, name = "register"),
  11. ]