mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 00:09:14 +00:00
* [Update] 修改RemoteApp关联的系统用户:从RemoteApp中转移到RemoteAppPermission中(未提交迁移文件) * [Update] 修改RemoteApp关联的系统用户:提交迁移文件 * [Update] 修改RemoteApp关联的系统用户:修改迁移文件 * [Update] 修改迁移文件1 * [Update] 修改迁移文件2 * [Update] 修改迁移文件3 * [Update] 修改RemoteAppPermsUtil获取系统用户的逻辑
23 lines
581 B
Python
23 lines
581 B
Python
# 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')
|
|
|
|
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
|