first commit
This commit is contained in:
22
accounts/urls.py
Normal file
22
accounts/urls.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from django.urls import include, path
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from .views import AdminRestrictedUserViewSet, SocialLoginView, SocialAuthCallbackView, SocialAuthSuccessView
|
||||
|
||||
|
||||
auth_router = DefaultRouter()
|
||||
auth_router.register('users', AdminRestrictedUserViewSet, basename='user')
|
||||
|
||||
urlpatterns = [
|
||||
# Djoser endpoints (registration, activation, etc.)
|
||||
# /api/v1/auth/users/ - POST: Register new user
|
||||
# /api/v1/auth/users/activation/ - POST: Activate account with uid/token
|
||||
# /api/v1/auth/users/me/ - GET: Get current user info
|
||||
# /api/v1/auth/users/resend_activation/ - POST: Resend activation email
|
||||
path('auth/', include(auth_router.urls)),
|
||||
|
||||
# Djoser JWT endpoints
|
||||
# /api/v1/auth/jwt/create/ - POST: Login (get JWT tokens)
|
||||
# /api/v1/auth/jwt/refresh/ - POST: Refresh access token
|
||||
# /api/v1/auth/jwt/verify/ - POST: Verify token
|
||||
path('auth/', include('djoser.urls.jwt')),
|
||||
]
|
||||
Reference in New Issue
Block a user