You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.5 KiB
25 lines
1.5 KiB
from django.urls import path, include
|
|
from rest_framework import routers
|
|
|
|
from common.views import dict, upload_file, archive
|
|
from common.views.area import NewRegisterAreaListAPIView
|
|
from common.views.history import HistoryLogAPIView
|
|
|
|
router = routers.SimpleRouter()
|
|
router.register(r"dict/detail/list", dict.DataDictionaryDetailListViewSet, basename="dict_detail_list")
|
|
router.register(r"dict/detail", dict.DataDictionaryDetailTreeViewSet, basename="dict_detail")
|
|
router.register(r"dict", dict.DataDictionaryViewSet, basename="dict")
|
|
router.register(r"archive", archive.ArchiveViewSet, basename="archive")
|
|
|
|
urlpatterns = [
|
|
path(r"api/", include(router.urls)),
|
|
path(r'api/att/file/upload/', upload_file.UploadFileAPIView.as_view(), name='upload_file'), # 上传附件
|
|
path(r'api/file/download/', upload_file.DownLoadFileAPIView.as_view(), name='download_file'),
|
|
path(r'api/file/delete/', upload_file.DeleteFileAPIView.as_view(), name='delete_file'),
|
|
path(r'api/history/list/', HistoryLogAPIView.as_view(), name='history_list'), # 操作日志
|
|
path(r'api/dict/zy/detail/', dict.DataDictionaryDetailTreeViewSetZY.as_view({'get': 'list'}),
|
|
name='dict_detail_zy'), # 操作日志
|
|
path(r'api/register/area/newlist/', NewRegisterAreaListAPIView.as_view(), name='area_list'), # 去除区县
|
|
path(r"api/break/point/upload/", archive.BreakPointUploadAPIView.as_view(), name="break_point_upload"),
|
|
path(r"api/merge/file/", archive.MergeFile.as_view(), name="merge_file"),
|
|
]
|
|
|