mirror of
				https://github.com/jumpserver/jumpserver.git
				synced 2025-11-04 07:55:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			516 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			516 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 = 'applications'
 | 
						|
 | 
						|
router = routers.DefaultRouter()
 | 
						|
router.register(r'v1/terminal/heatbeat', api.TerminalHeatbeatViewSet, 'terminal-heatbeat')
 | 
						|
router.register(r'v1/terminal', api.TerminalViewSet, 'terminal')
 | 
						|
 | 
						|
urlpatterns = [
 | 
						|
    url(r'^v1/terminate/connection/$', api.TerminateConnectionView.as_view(),
 | 
						|
        name='terminate-connection')
 | 
						|
]
 | 
						|
 | 
						|
urlpatterns += router.urls
 |