jumpserver/apps/audits/urls.py

23 lines
814 B
Python
Raw Normal View History

from django.conf.urls import url
2016-10-08 16:12:18 +00:00
2016-11-08 16:36:23 +00:00
from rest_framework import routers
2016-10-08 16:12:18 +00:00
import api
import views
app_name = 'audits'
urlpatterns = [
2016-10-25 15:23:01 +00:00
url(r'^proxy-log$', views.ProxyLogListView.as_view(), name='proxy-log-list'),
url(r'^proxy-log/(?P<pk>\d+)$', views.ProxyLogDetailView.as_view(), name='proxy-log-detail'),
2016-10-26 16:52:44 +00:00
url(r'^proxy-log/(?P<pk>\d+)/commands$', views.ProxyLogCommandsListView.as_view(), name='proxy-log-commands-list'),
2016-10-27 11:35:02 +00:00
url(r'^command-log$', views.CommandLogListView.as_view(), name='command-log-list'),
2016-11-14 11:28:21 +00:00
url(r'^login-log$', views.LoginLogListView.as_view(), name='login-log-list'),
2016-10-08 16:12:18 +00:00
]
2016-11-08 16:36:23 +00:00
router = routers.DefaultRouter()
router.register(r'v1/proxy-log', api.ProxyLogViewSet, 'api-proxy-log')
router.register(r'v1/command-log', api.CommandLogViewSet, 'api-command-log')
2016-10-08 16:12:18 +00:00
2016-11-08 16:36:23 +00:00
urlpatterns += router.urls