refactor: rename TokenRefreshView to RefreshTokenView for consistency

This commit is contained in:
Your Name
2026-04-10 18:12:41 +05:30
parent 373c2b1815
commit bb72b65db1
+2 -2
View File
@@ -1,13 +1,13 @@
from django.urls import path from django.urls import path
from .views import ActivationView, LogoutView, MeView, RegisterView, TokenLoginView, TokenRefreshView from .views import ActivationView, LogoutView, MeView, RefreshTokenView, RegisterView, TokenLoginView
urlpatterns = [ urlpatterns = [
path("register/", RegisterView.as_view(), name="register"), path("register/", RegisterView.as_view(), name="register"),
# Login and get access and refresh tokens # Login and get access and refresh tokens
path("login/", TokenLoginView.as_view(), name="token_obtain_pair"), path("login/", TokenLoginView.as_view(), name="token_obtain_pair"),
# Get a new access token using a refresh token # Get a new access token using a refresh token
path("refresh/", TokenRefreshView.as_view(), name="token_refresh"), path("refresh/", RefreshTokenView.as_view(), name="token_refresh"),
# Get current user info # Get current user info
path("me/", MeView.as_view(), name="me"), path("me/", MeView.as_view(), name="me"),
# Activate user account # Activate user account