diff --git a/tools/api.go b/tools/api.go index ee6e3ac..f697b1d 100644 --- a/tools/api.go +++ b/tools/api.go @@ -91,8 +91,12 @@ func (a *API) SubscribeRouter(infos []*beego.ControllerInfo) { discovery := map[string]interface{}{} for _, info := range infos { methods := []string{} - for k := range info.GetMethod() { - methods = append(methods, k) + for k, v := range info.GetMethod() { + if strings.Contains(strings.ToLower(v), "internal") { + methods = append(methods, "INTERNAL"+k) + } else { + methods = append(methods, k) + } } path := strings.ReplaceAll(info.GetPattern(), "/oc/", "/"+strings.ReplaceAll(config.GetAppName(), "oc-", "")) discovery[path] = methods