diff --git a/src/users/urls.py b/src/users/urls.py index a739968..1054fcd 100644 --- a/src/users/urls.py +++ b/src/users/urls.py @@ -1,10 +1,19 @@ -from django.urls import path +# Django +from django.urls import path, include + +# Viewsets from .viewsets import UserRegistrationAPIView -from rest_framework.authtoken.views import obtain_auth_token +# Simple JWT +from rest_framework_simplejwt.views import ( + TokenObtainPairView, + TokenRefreshView, +) app_name = 'users' urlpatterns = [ path('signup/', UserRegistrationAPIView.as_view(), name='signup'), + path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'), + path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), ] \ No newline at end of file