mirror of https://github.com/jumpserver/jumpserver
23 lines
710 B
Python
23 lines
710 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from django.conf.urls import url
|
|
from rest_framework import routers
|
|
|
|
from .. import api
|
|
|
|
app_name = 'terminal'
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'v1/terminal/(?P<terminal>[0-9]+)?/?status', api.TerminalStatusViewSet, 'terminal-status')
|
|
router.register(r'v1/terminal/(?P<terminal>[0-9]+)?/?sessions', api.TerminalSessionViewSet, 'terminal-sessions')
|
|
router.register(r'v1/terminal', api.TerminalViewSet, 'terminal')
|
|
router.register(r'v1/command', api.SessionCommandViewSet, 'command')
|
|
|
|
urlpatterns = [
|
|
url(r'^v1/sessions/(?P<pk>[0-9a-zA-Z\-_]+)/replay/$', api.SessionReplayAPI.as_view(), name='session-replay'),
|
|
]
|
|
|
|
urlpatterns += router.urls
|