auth 초기구성

This commit is contained in:
2025-04-22 17:01:27 +09:00
parent 2102c98556
commit 386ec64ae0
20 changed files with 464 additions and 1 deletions

10
users/urls.py Normal file
View File

@ -0,0 +1,10 @@
from django.urls import path
from .views import RegisterView, MeView
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
urlpatterns = [
path('register/', RegisterView.as_view(), name='register'),
path('login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('me/', MeView.as_view(), name='me'),
]