Files
MTCBD/backend/accounts/urls.py
2026-02-23 20:31:53 +05:30

12 lines
560 B
Python

from django.urls import path
from rest_framework_simplejwt.views import TokenRefreshView
from .views import RegisterView, CustomTokenObtainPairView, UserProfileView, UserListView
urlpatterns = [
path('register/', RegisterView.as_view(), name='auth_register'),
path('login/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('profile/', UserProfileView.as_view(), name='user_profile'),
path('users/', UserListView.as_view(), name='user_list'),
]