You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org> on 2023/07/06 08:38:19 UTC

[GitHub] [apisix] monkeyDluffy6017 commented on a diff in pull request #9580: fix: Improve results from admin API while GET all plugins

monkeyDluffy6017 commented on code in PR #9580:
URL: https://github.com/apache/apisix/pull/9580#discussion_r1254122474


##########
apisix/admin/init.lua:
##########
@@ -253,8 +254,9 @@ end
 
 local function get_plugins_list()
     set_ctx_and_check_token()
-
-    local plugins = resources.plugins.get_plugins_list()
+    local args = get_uri_args()
+    local subsystem = args["subsystem"]
+    local plugins = resources.plugins.get_plugins_list(subsystem)

Review Comment:
   Should we check the value of subsystem?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org