mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-05 05:27:35 +08:00
plugins: removed example-plugin from yaml configure. (#383)
This commit is contained in:
parent
34c7b3843d
commit
ffc71f529c
@ -3,7 +3,7 @@ local local_plugins = require("apisix.plugin").plugins_hash
|
||||
local pairs = pairs
|
||||
local pcall = pcall
|
||||
local require = require
|
||||
|
||||
local table_remove = table.remove
|
||||
|
||||
local _M = {
|
||||
version = 0.1,
|
||||
@ -63,7 +63,12 @@ end
|
||||
|
||||
|
||||
function _M.get_plugins_list()
|
||||
return core.config.local_conf().plugins
|
||||
local plugins = core.config.local_conf().plugins
|
||||
if plugins[1] == 'example-plugin' then
|
||||
table_remove(plugins, 1)
|
||||
end
|
||||
|
||||
return plugins
|
||||
end
|
||||
|
||||
|
||||
|
@ -14,6 +14,6 @@ __DATA__
|
||||
--- request
|
||||
GET /apisix/admin/plugins/list
|
||||
--- response_body_like eval
|
||||
qr/\["example-plugin","limit-req","limit-count","limit-conn","key-auth","prometheus","node-status","jwt-auth","zipkin"\]/
|
||||
qr/\["limit-req","limit-count","limit-conn","key-auth","prometheus","node-status","jwt-auth","zipkin"\]/
|
||||
--- no_error_log
|
||||
[error]
|
||||
|
Loading…
Reference in New Issue
Block a user