from django.urls import path from rest_framework_simplejwt.views import TokenRefreshView from .views import RegisterView, CustomTokenObtainPairView, UserProfileView, UserListView urlpatterns = [ path('register/', RegisterView.as_view(), name='auth_register'), path('login/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'), path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), path('profile/', UserProfileView.as_view(), name='user_profile'), path('users/', UserListView.as_view(), name='user_list'), ]