from django.urls import path, include from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView from .views import * urlpatterns = [ path('login/', UserLoginView.as_view(), name='login'), path('logout/', UserLogoutView.as_view(), name='logout'), path('register/', UserRegistrationView.as_view(), name='register'), path('token/', TokenObtainPairView.as_view(), name='token-obtain-pair'), path('token/refresh/', TokenRefreshView.as_view(), name='token-refresh'), ]