mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 14:50:24 +00:00
perf: 修改 applet
This commit is contained in:
@@ -64,7 +64,7 @@ class DownloadUploadMixin:
|
|||||||
if instance and not update:
|
if instance and not update:
|
||||||
return Response({'error': 'Applet already exists: {}'.format(name)}, status=400)
|
return Response({'error': 'Applet already exists: {}'.format(name)}, status=400)
|
||||||
|
|
||||||
applet, serializer = Applet.install_from_dir(tmp_dir)
|
applet, serializer = Applet.install_from_dir(tmp_dir, builtin=False)
|
||||||
return Response(serializer.data, status=201)
|
return Response(serializer.data, status=201)
|
||||||
|
|
||||||
@action(detail=True, methods=['get'])
|
@action(detail=True, methods=['get'])
|
||||||
|
Reference in New Issue
Block a user