Skip to content

Commit

Permalink
Merge pull request apache#115 from ztelur/admin_config
Browse files Browse the repository at this point in the history
Admin config
  • Loading branch information
xiaoliu10 authored Feb 8, 2021
2 parents cc456d6 + c0bb098 commit 008bffe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/service/api/discovery_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ func (ads *LocalMemoryAPIDiscoveryService) ClearAPI() error {
// APIConfigChange to response to api config change
func (ads *LocalMemoryAPIDiscoveryService) APIConfigChange(apiConfig config.APIConfig) bool {
ads.ClearAPI()
// load pluginsGroup
plugins.InitPluginsGroup(apiConfig.PluginsGroup, apiConfig.PluginFilePath)
// init plugins from resource
plugins.InitAPIURLWithFilterChain(apiConfig.Resources)
loadAPIFromResource("", apiConfig.Resources, nil, ads)
return true
}
Expand Down

0 comments on commit 008bffe

Please sign in to comment.