jumpserver/apps/terminal/urls/views_urls.py

29 lines
1.2 KiB
Python
Raw Normal View History

2016-11-16 10:12:14 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from django.conf.urls import url
from .. import views
app_name = 'terminal'
2016-11-16 10:12:14 +00:00
urlpatterns = [
2017-12-01 13:22:32 +00:00
# Terminal view
2017-03-31 03:25:25 +00:00
url(r'^terminal/$', views.TerminalListView.as_view(), name='terminal-list'),
url(r'^terminal/(?P<pk>[0-9a-zA-Z\-]{36})/$', views.TerminalDetailView.as_view(), name='terminal-detail'),
url(r'^terminal/(?P<pk>[0-9a-zA-Z\-]{36})/connect/$', views.TerminalConnectView.as_view(), name='terminal-connect'),
url(r'^terminal/(?P<pk>[0-9a-zA-Z\-]{36})/update/$', views.TerminalUpdateView.as_view(), name='terminal-update'),
url(r'^(?P<pk>[0-9a-zA-Z\-]{36})/accept/$', views.TerminalAcceptView.as_view(), name='terminal-accept'),
2017-12-26 16:14:46 +00:00
url(r'^web-terminal/$', views.WebTerminalView.as_view(), name='web-terminal'),
2017-12-01 13:22:32 +00:00
# Session view
2017-12-04 08:41:00 +00:00
url(r'^session-online/$', views.SessionOnlineListView.as_view(), name='session-online-list'),
url(r'^session-offline/$', views.SessionOfflineListView.as_view(), name='session-offline-list'),
url(r'^session/(?P<pk>[0-9a-zA-Z\-]{36})/$', views.SessionDetailView.as_view(), name='session-detail'),
2017-12-04 08:41:00 +00:00
# Command view
url(r'^command/$', views.CommandListView.as_view(), name='command-list'),
2016-11-16 10:12:14 +00:00
]