<reponame>kiplaa1500/counsellor-backend-
from .views import (UserRegistrationView,UserLoginView,UserListView)
from django.conf.urls import url
from django.urls import path
from rest_framework_simplejwt import views as jwt_views
urlpatterns=[
  path('token/obtain/', jwt_views.TokenObtainPairView.as_view(), name='token_create'),
  path('token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token_refresh'),
  path('register', UserRegistrationView.as_view(), name='register'),
  path('login', UserLoginView.as_view(), name='login'),
  path('users', UserListView.as_view(), name='users')
]
from .views import (UserRegistrationView,UserLoginView,UserListView)
from django.conf.urls import url
from django.urls import path
from rest_framework_simplejwt import views as jwt_views
urlpatterns=[
  path('token/obtain/', jwt_views.TokenObtainPairView.as_view(), name='token_create'),
  path('token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token_refresh'),
  path('register', UserRegistrationView.as_view(), name='register'),
  path('login', UserLoginView.as_view(), name='login'),
  path('users', UserListView.as_view(), name='users')
]