Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ztelur committed Feb 8, 2021
1 parent 8481b56 commit cdb8151
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 cdb8151

Please sign in to comment.