jumpserver/apps/audits/urls.py

22 lines
817 B
Python
Raw Normal View History

from django.conf.urls import url
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-10-08 16:12:18 +00:00
]
urlpatterns += [
2016-10-09 16:39:24 +00:00
url(r'^v1/proxy-log/$', api.ProxyLogListCreateApi.as_view(), name='proxy-log-list-create-api'),
url(r'^v1/proxy-log/(?P<pk>\d+)/$', api.ProxyLogDetailApi.as_view(), name='proxy-log-detail-api'),
2016-10-26 11:10:14 +00:00
url(r'^v1/command-log/$', api.CommandLogListCreateApi.as_view(), name='command-log-create-list-api'),
2016-10-08 16:12:18 +00:00
]