jumpserver/apps/audits/urls/api_urls.py

19 lines
506 B
Python
Raw Normal View History

2016-11-16 10:12:14 +00:00
from django.conf.urls import url
from rest_framework import routers
from .. import api
app_name = 'audits'
router = routers.DefaultRouter()
2016-12-30 14:21:50 +00:00
router.register(r'v1/proxy-log', api.ProxyLogViewSet, 'proxy-log')
router.register(r'v1/command-log', api.CommandLogViewSet, 'command-log')
2017-02-07 13:51:44 +00:00
router.register(r'v1/record-log', api.RecordLogViewSet, 'record-log')
2016-11-16 10:12:14 +00:00
2016-12-30 14:21:50 +00:00
urlpatterns = [
url(r'^v1/proxy-log/receive/$', api.ProxyLogReceiveView.as_view(),
name='proxy-log-receive'),
2016-12-30 14:21:50 +00:00
]
2016-11-16 10:12:14 +00:00
2016-12-30 14:21:50 +00:00
urlpatterns += router.urls