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,
|
Secret: value,
|
||||||
ProxyPath: "/api",
|
ProxyPath: "/api",
|
||||||
ServiceURL: fmt.Sprintf("http://127.0.0.1:%d", port),
|
ServiceURL: fmt.Sprintf("http://127.0.0.1:%d", port),
|
||||||
Repository: "https://github.com/perfect-panel/server",
|
Repository: constant.Repository,
|
||||||
ServiceName: "ApiService",
|
ServiceName: constant.ServiceName,
|
||||||
ServiceVersion: constant.Version,
|
ServiceVersion: constant.Version,
|
||||||
}).SetResult(&response).Post(RegisterAPI)
|
}).SetResult(&response).Post(RegisterAPI)
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,8 @@ package constant
|
|||||||
|
|
||||||
// Version PPanel version
|
// Version PPanel version
|
||||||
var (
|
var (
|
||||||
Version = "unknown version"
|
Version = "unknown version"
|
||||||
BuildTime = "unknown time"
|
BuildTime = "unknown time"
|
||||||
|
Repository = "https://github.com/perfect-panel/server"
|
||||||
|
ServiceName = "ApiService"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user