refactor(constants): update repository and service name constants in tool and version files
This commit is contained in:
parent
2305562a7c
commit
87b743a2a2
@ -75,8 +75,8 @@ func RegisterModule(port int) error {
|
||||
Secret: value,
|
||||
ProxyPath: "/api",
|
||||
ServiceURL: fmt.Sprintf("http://127.0.0.1:%d", port),
|
||||
Repository: "https://github.com/perfect-panel/server",
|
||||
ServiceName: "ApiService",
|
||||
Repository: constant.Repository,
|
||||
ServiceName: constant.ServiceName,
|
||||
ServiceVersion: constant.Version,
|
||||
}).SetResult(&response).Post(RegisterAPI)
|
||||
|
||||
|
||||
@ -2,6 +2,8 @@ package constant
|
||||
|
||||
// Version PPanel version
|
||||
var (
|
||||
Version = "unknown version"
|
||||
BuildTime = "unknown time"
|
||||
Version = "unknown version"
|
||||
BuildTime = "unknown time"
|
||||
Repository = "https://github.com/perfect-panel/server"
|
||||
ServiceName = "ApiService"
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user