Backend Draft

This commit is contained in:
__init__
2026-02-23 20:31:53 +05:30
commit eec700af51
127 changed files with 2356 additions and 0 deletions

11
backend/accounts/urls.py Normal file
View File

@@ -0,0 +1,11 @@
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'),
]