mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-09 03:09:34 +00:00
Update app terminal name to applications
This commit is contained in:
20
apps/applications/urls/api_urls.py
Normal file
20
apps/applications/urls/api_urls.py
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/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', api.TerminalViewSet, 'terminal')
|
||||
router.register(r'v1/terminal/heatbeat', api.TerminalHeatbeatViewSet, 'terminal-heatbeat')
|
||||
|
||||
urlpatterns = [
|
||||
url(r'v1/terminal/register$', api.TerminalRegisterView.as_view(), name='terminal-register')
|
||||
]
|
||||
|
||||
urlpatterns += router.urls
|
Reference in New Issue
Block a user