Skip to content

Commit 054da07

Browse files
committed
Release v0.0.5_2025-05-26_05:01:34_UTC
1 parent cd04ab8 commit 054da07

30 files changed

Lines changed: 165 additions & 194 deletions
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import (
55
"github.com/george012/gtbox/gtbox_log"
66
"github.com/george012/gtbox/gtbox_net"
77
"github.com/gorilla/mux"
8+
"github.com/wmyeah/yeah_box/base_app/api/api_config"
9+
"github.com/wmyeah/yeah_box/base_app/api/api_handler"
10+
"github.com/wmyeah/yeah_box/base_app/app_cfg"
11+
"github.com/wmyeah/yeah_box/config"
812
"net/http"
9-
"pre_app/api/api_config"
10-
"pre_app/api/api_handler"
11-
"pre_app/pre_app_cfg"
1213
)
1314

1415
var apiMethods = []string{"auth", "logout"}
@@ -22,7 +23,7 @@ func StartAPIService(apiCfg *api_config.ApiConfig) {
2223

2324
api_config.CurrentApiConfig = apiCfg
2425

25-
apiCfg.UserAgentAllowed = append(apiCfg.UserAgentAllowed, fmt.Sprintf("%s/*", pre_app_cfg.CurrentApp.AppName))
26+
apiCfg.UserAgentAllowed = append(apiCfg.UserAgentAllowed, fmt.Sprintf("%s/*", app_cfg.CurrentApp.AppName))
2627

2728
apiCfg.APIMethodsAllowed = append(apiCfg.APIMethodsAllowed, apiMethods...)
2829

@@ -37,9 +38,9 @@ func StartAPIService(apiCfg *api_config.ApiConfig) {
3738
runWith := pre_app_cfg.CurrentApp.CurrentRunWith
3839

3940
switch runWith {
40-
case pre_app_cfg.YeahBoxRunWithServer:
41+
case config.YeahBoxRunWithServer:
4142
loadApiMethodForServer(apiGroup, api_handler.ApiHandler)
42-
case pre_app_cfg.YeahBoxRunWithAgent:
43+
case config.YeahBoxRunWithAgent:
4344
loadApiMethodForAgent(apiGroup, api_handler.ApiHandler)
4445
}
4546

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)