handlers区分backend和frontend,需要确认。

This commit is contained in:
2026-08-12 17:57:31 +08:00
parent 60869ec214
commit 42c6f2450d
20 changed files with 242 additions and 137 deletions
+8
View File
@@ -117,3 +117,11 @@ func watchConfig() {
func GetGlobalConfig() *Config {
return globalConfig
}
// getConfig 获取全局配置(启动时已初始化,直接返回)
func GetConfig() *Config {
if cfg := GetGlobalConfig(); cfg != nil {
return cfg
}
return Load()
}