jumpserver/apps/terminal/urls/views_urls.py

30 lines
1.2 KiB
Python
Raw Normal View History

2016-11-16 10:12:14 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
2018-07-27 10:56:40 +00:00
from django.urls import path
2016-11-16 10:12:14 +00:00
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
2018-07-27 10:56:40 +00:00
path('terminal/', views.TerminalListView.as_view(), name='terminal-list'),
path('terminal/<uuid:pk>/', views.TerminalDetailView.as_view(), name='terminal-detail'),
path('terminal/<uuid:pk>/connect/', views.TerminalConnectView.as_view(), name='terminal-connect'),
path('terminal/<uuid:pk>/update/', views.TerminalUpdateView.as_view(), name='terminal-update'),
path('<uuid:pk>/accept/', views.TerminalAcceptView.as_view(), name='terminal-accept'),
path('web-terminal/', views.WebTerminalView.as_view(), name='web-terminal'),
2018-10-10 07:37:20 +00:00
path('web-sftp/', views.WebSFTPView.as_view(), name='web-sftp'),
2017-12-01 13:22:32 +00:00
# Session view
2018-07-27 10:56:40 +00:00
path('session-online/', views.SessionOnlineListView.as_view(), name='session-online-list'),
path('session-offline/', views.SessionOfflineListView.as_view(), name='session-offline-list'),
path('session/<uuid:pk>/', views.SessionDetailView.as_view(), name='session-detail'),
2017-12-04 08:41:00 +00:00
# Command view
2018-07-27 10:56:40 +00:00
path('command/', views.CommandListView.as_view(), name='command-list'),
2017-12-04 08:41:00 +00:00
2016-11-16 10:12:14 +00:00
]