forked from mirror/MrDoc
40 lines
2.9 KiB
Python
40 lines
2.9 KiB
Python
from django.urls import path,re_path
|
|
from app_admin import views
|
|
|
|
urlpatterns = [
|
|
path('user_manage/',views.admin_user,name="user_manage"), # 用户管理页面
|
|
path('user_profile/',views.admin_user_profile, name="user_profile"), # 用户资料页面
|
|
path('api/users', views.AdminUserList.as_view(), name="api_admin_users"), # 用户列表接口
|
|
path('api/user/<int:id>',views.AdminUserDetail.as_view(), name="api_admin_user"), # 用户接口
|
|
|
|
path('modify_pwd',views.change_pwd,name="modify_pwd"), # 普通用户修改密码
|
|
|
|
path('project_manage/',views.admin_project,name='project_manage'), # 文集管理
|
|
path('project_role_manage/<int:pro_id>/',views.admin_project_role,name="admin_project_role"), # 管理文集权限
|
|
path('project_manage_istop',views.admin_project_istop,name="admin_project_istop"), # 修改文集置顶状态
|
|
path('project_del/',views.admin_project_delete,name="admin_project_del"), # 删除文集
|
|
|
|
path('doc_manage/',views.admin_doc,name='doc_manage'), # 文档管理
|
|
# 文档历史记录管理及接口
|
|
path('doc_history_manage/<int:id>/', views.admin_doc_history, name='doc_history_manage'), # 文档历史记录管理
|
|
path('api/doc_history/<int:id>/', views.AdminDocHistory.as_view(), name="api_doc_history"), # 文档历史记录接口
|
|
path('api/doc_history_detail/', views.AdminDocHistoryDetail.as_view(), name="api_doc_history_detail"), # 文档历史记录详情接口
|
|
path('doctemp_manage/',views.admin_doctemp,name='doctemp_manage'), # 文档模板管理
|
|
path('setting/',views.admin_setting,name="sys_setting"), # 应用设置
|
|
path('forget_pwd/',views.forget_pwd,name='forget_pwd'), # 忘记密码
|
|
path('send_email_vcode/',views.send_email_vcode,name='send_email_vcode'), # 忘记密码发送邮件验证码
|
|
path('admin_register_code/',views.admin_register_code,name='register_code_manage'), # 注册邀请码管理
|
|
path('check_update/',views.check_update,name='check_update'), # 检测版本更新
|
|
path('admin_center/',views.admin_center,name="admin_center"), # 后台管理
|
|
path('admin/center_menu/',views.admin_center_menu,name="admin_center_menu"), # 后台管理菜单数据
|
|
path('admin_overview/',views.admin_overview,name="admin_overview"), # 后台管理仪表盘
|
|
# 图片管理及接口
|
|
path('manage/image/', views.admin_image, name="image_manage"), # 图片管理页面
|
|
path('api/imgs/', views.AdminImageList.as_view(), name="api_admin_imgs"), # 图片列表接口
|
|
path('api/img/<int:id>/', views.AdminImageDetail.as_view(), name="api_admin_img"), # 图片详情接口
|
|
# 附件管理及接口
|
|
path('manage/attachment/', views.admin_attachment, name="attachment_manage"), # 附件管理页面
|
|
path('api/attachments/', views.AdminAttachmentList.as_view(), name="api_admin_attachments"), # 附件列表接口
|
|
path('api/attachment/<int:id>/', views.AdminAttachmentDetail.as_view(), name="api_admin_attachment"), # 附件详情接口
|
|
|
|
] |