handlers区分backend和frontend,需要确认。
This commit is contained in:
@@ -117,3 +117,11 @@ func watchConfig() {
|
||||
func GetGlobalConfig() *Config {
|
||||
return globalConfig
|
||||
}
|
||||
|
||||
// getConfig 获取全局配置(启动时已初始化,直接返回)
|
||||
func GetConfig() *Config {
|
||||
if cfg := GetGlobalConfig(); cfg != nil {
|
||||
return cfg
|
||||
}
|
||||
return Load()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user