ameryhan removed a comment on issue #5955:
URL: https://github.com/apache/apisix/issues/5955#issuecomment-1002479360
apisix versioin 2.10.2
saas route 写入步骤
function _M.init()
local local_conf = core.config.local_conf()
-- config_path = core.table.try_read_attr(local_conf, plugin_name,
"config_path")
-- config_path = "/config_path"
local attr = plugin.plugin_attr(plugin_name)
config_path = attr and attr.config_path
if not config_path then
core.log.error("failed to get config_path")
return
end
core.log.warn(plugin_name, " init , config_path = ",config_path)
local saas_dict_obj = core.config.fetch_created_obj(config_path)
-- if not set_saas_dict then
-- core.log.warn("start to create------------------------ ",
saas_dict_obj)
-- config_obj = core.config.new(config_path,{automatic =
true,item_schema = saas_schema,single_item=false } )
-- if not config_obj then
-- core.log.error("failed to init config")
-- return
-- end
-- core.log.warn("create finish------------------------ ",
saas_dict_obj)
-- end
end
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]