From dcf9e96a0b16530549168a7891ed8242663b5f28 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 22 Sep 2017 12:54:27 -0500 Subject: remove global refs from api/api4 (#7496) --- api/general.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'api/general.go') diff --git a/api/general.go b/api/general.go index 09bbc75c5..015baec4e 100644 --- a/api/general.go +++ b/api/general.go @@ -15,12 +15,12 @@ import ( "github.com/mattermost/mattermost-server/utils" ) -func InitGeneral() { +func (api *API) InitGeneral() { l4g.Debug(utils.T("api.general.init.debug")) - BaseRoutes.General.Handle("/client_props", ApiAppHandler(getClientConfig)).Methods("GET") - BaseRoutes.General.Handle("/log_client", ApiAppHandler(logClient)).Methods("POST") - BaseRoutes.General.Handle("/ping", ApiAppHandler(ping)).Methods("GET") + api.BaseRoutes.General.Handle("/client_props", api.ApiAppHandler(getClientConfig)).Methods("GET") + api.BaseRoutes.General.Handle("/log_client", api.ApiAppHandler(logClient)).Methods("POST") + api.BaseRoutes.General.Handle("/ping", api.ApiAppHandler(ping)).Methods("GET") } func getClientConfig(c *Context, w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3-1-g7c22