Backend Draft
This commit is contained in:
11
backend/accounts/urls.py
Normal file
11
backend/accounts/urls.py
Normal 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'),
|
||||
]
|
||||
Reference in New Issue
Block a user