From 591ef9f352efd98a85e6d04c0c9072c4c2987527 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 5 Jan 2018 16:17:57 -0600 Subject: Remove utils.ClientCfg and utils.ClientCfgHash (#8041) * remove utils.ClientCfg and utils.ClientCfgHash * remove unused import --- api/general.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api/general.go') diff --git a/api/general.go b/api/general.go index 0fd289ffb..94da47330 100644 --- a/api/general.go +++ b/api/general.go @@ -9,7 +9,6 @@ import ( "strings" "github.com/mattermost/mattermost-server/model" - "github.com/mattermost/mattermost-server/utils" ) func (api *API) InitGeneral() { @@ -19,7 +18,7 @@ func (api *API) InitGeneral() { } func getClientConfig(c *Context, w http.ResponseWriter, r *http.Request) { - w.Write([]byte(model.MapToJson(utils.ClientCfg))) + w.Write([]byte(model.MapToJson(c.App.ClientConfig()))) } func logClient(c *Context, w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3-1-g7c22