mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
715 B
26 lines
715 B
# coding:utf-8
|
|
#
|
|
|
|
from django.urls import path, re_path
|
|
from rest_framework_bulk.routes import BulkRouter
|
|
|
|
from common import api as capi
|
|
from .. import api
|
|
|
|
app_name = 'applications'
|
|
|
|
router = BulkRouter()
|
|
router.register(r'remote-apps', api.RemoteAppViewSet, 'remote-app')
|
|
router.register(r'database-apps', api.DatabaseAppViewSet, 'database-app')
|
|
router.register(r'k8s-apps', api.K8sAppViewSet, 'k8s-app')
|
|
|
|
urlpatterns = [
|
|
path('remote-apps/<uuid:pk>/connection-info/', api.RemoteAppConnectionInfoApi.as_view(), name='remote-app-connection-info'),
|
|
]
|
|
|
|
old_version_urlpatterns = [
|
|
re_path('(?P<resource>remote-app)/.*', capi.redirect_plural_name_api)
|
|
]
|
|
|
|
urlpatterns += router.urls + old_version_urlpatterns
|