2018-04-06 03:27:52 +00:00
|
|
|
# ~*~ coding: utf-8 ~*~
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2023-02-20 06:13:22 +00:00
|
|
|
from django.urls.conf import path
|
2018-04-06 03:27:52 +00:00
|
|
|
from rest_framework.routers import DefaultRouter
|
2019-08-31 04:07:03 +00:00
|
|
|
|
2018-04-06 03:27:52 +00:00
|
|
|
from .. import api
|
|
|
|
|
|
|
|
app_name = "audits"
|
|
|
|
|
|
|
|
router = DefaultRouter()
|
2019-08-31 04:07:03 +00:00
|
|
|
router.register(r'ftp-logs', api.FTPLogViewSet, 'ftp-log')
|
2020-04-29 11:05:56 +00:00
|
|
|
router.register(r'login-logs', api.UserLoginLogViewSet, 'login-log')
|
2020-05-08 08:48:26 +00:00
|
|
|
router.register(r'operate-logs', api.OperateLogViewSet, 'operate-log')
|
|
|
|
router.register(r'password-change-logs', api.PasswordChangeLogViewSet, 'password-change-log')
|
2022-12-16 07:52:02 +00:00
|
|
|
router.register(r'job-logs', api.JobAuditViewSet, 'job-log')
|
2023-02-20 06:13:22 +00:00
|
|
|
router.register(r'my-login-logs', api.MyLoginLogViewSet, 'my-login-log')
|
2023-09-15 09:15:15 +00:00
|
|
|
router.register(r'user-sessions', api.UserSessionViewSet, 'user-session')
|
2018-04-06 03:27:52 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2023-01-16 11:02:09 +00:00
|
|
|
path('activities/', api.ResourceActivityAPIView.as_view(), name='resource-activities'),
|
2019-08-31 04:07:03 +00:00
|
|
|
]
|
|
|
|
|
2018-04-06 03:27:52 +00:00
|
|
|
urlpatterns += router.urls
|