From ef916fe2d995757bf8b431ea719e516ad55de6e4 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 3 Feb 2026 16:05:31 +0100 Subject: [PATCH] InitAPI --- entrypoint.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.go b/entrypoint.go index 1995b6e..3f86862 100644 --- a/entrypoint.go +++ b/entrypoint.go @@ -200,7 +200,7 @@ func ExtractTokenInfo(request http.Request) (string, string, []string) { return "", "", []string{} } -func Init(appName string) { +func InitAPI(appName string) { InitDaemon(appName) beego.BConfig.Listen.HTTPPort = config.GetConfig().APIPort beego.BConfig.WebConfig.DirectoryIndex = true @@ -215,6 +215,7 @@ func Init(appName string) { beego.InsertFilter("*", beego.BeforeRouter, c) api := &tools.API{} api.Discovered(beego.BeeApp.Handlers.GetAllControllerInfo()) + beego.Run() } //