from django.urls import path from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView from . import views app_name = "accounts" urlpatterns = [ path("register/", views.RegisterView.as_view(), name="register"), path("me/", views.UserDetailView.as_view(), name="user-detail"), path("change-password/", views.ChangePasswordView.as_view(), name="change-password"), path("token/", TokenObtainPairView.as_view(), name="token-obtain"), path("token/refresh/", TokenRefreshView.as_view(), name="token-refresh"), ]