from django.urls import path
from .views import MyObtainTokenPairView, RegisterView, UserView
from rest_framework_simplejwt.views import TokenRefreshView


urlpatterns = [
    path('login/', MyObtainTokenPairView.as_view(), name='token_obtain_pair'),
    # path('login/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
    path('register/', RegisterView.as_view(), name='auth_register'),
    path('me/', UserView.as_view(), name='user_info')
]
from django.urls import path
from .views import MyObtainTokenPairView, RegisterView, UserView
from rest_framework_simplejwt.views import TokenRefreshView


urlpatterns = [
    path('login/', MyObtainTokenPairView.as_view(), name='token_obtain_pair'),
    # path('login/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
    path('register/', RegisterView.as_view(), name='auth_register'),
    path('me/', UserView.as_view(), name='user_info')
]
# path('login/refresh/', TokenRefreshView.as_view(), name='token_refresh'),