yongboy commented on a change in pull request #3742:
URL: https://github.com/apache/apisix/pull/3742#discussion_r588040516
##########
File path: apisix/control/router.lua
##########
@@ -66,6 +68,38 @@ function fetch_control_api_router()
end
end
+ local discovery_type =
require("apisix.core.config_local").local_conf().discovery
+ if discovery_type then
+ local discovery = require("apisix.discovery.init").discovery
+ local dump_apis = {}
+ for key, _ in pairs(discovery_type) do
Review comment:
if use `for key, dis_mod in pairs(discovery) do`, the `dis_mod` is
`function` type, not a table object.
So, we can't do it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]