Files
xingrin/backend/apps/common/urls.py

22 lines
712 B
Python
Raw Normal View History

2025-12-12 18:04:57 +08:00
"""
通用模块 URL 配置
2025-12-17 16:40:07 +08:00
路由说明
- /api/auth/* 认证相关接口登录登出用户信息
- /api/system/* 系统管理接口日志查看等
2025-12-12 18:04:57 +08:00
"""
2025-12-17 16:40:07 +08:00
2025-12-12 18:04:57 +08:00
from django.urls import path
from .views import LoginView, LogoutView, MeView, ChangePasswordView, SystemLogsView
2025-12-12 18:04:57 +08:00
urlpatterns = [
2025-12-17 16:40:07 +08:00
# 认证相关
2025-12-12 18:04:57 +08:00
path('auth/login/', LoginView.as_view(), name='auth-login'),
path('auth/logout/', LogoutView.as_view(), name='auth-logout'),
path('auth/me/', MeView.as_view(), name='auth-me'),
path('auth/change-password/', ChangePasswordView.as_view(), name='auth-change-password'),
2025-12-17 16:40:07 +08:00
# 系统管理
path('system/logs/', SystemLogsView.as_view(), name='system-logs'),
2025-12-12 18:04:57 +08:00
]