feat: 多用户系统改造(数据模型 + 认证 API)
This commit is contained in:
9
backend/authentication/urls.py
Normal file
9
backend/authentication/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.urls import path
|
||||
from .views import RegisterView, LoginView, LogoutView, CurrentUserView
|
||||
|
||||
urlpatterns = [
|
||||
path('register/', RegisterView.as_view(), name='register'),
|
||||
path('login/', LoginView.as_view(), name='login'),
|
||||
path('logout/', LogoutView.as_view(), name='logout'),
|
||||
path('me/', CurrentUserView.as_view(), name='current-user'),
|
||||
]
|
||||
Reference in New Issue
Block a user