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) --- api4/cluster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api4/cluster.go') diff --git a/api4/cluster.go b/api4/cluster.go index c802d2a7e..f79ef28a8 100644 --- a/api4/cluster.go +++ b/api4/cluster.go @@ -12,10 +12,10 @@ import ( "github.com/mattermost/mattermost-server/utils" ) -func InitCluster() { +func (api *API) InitCluster() { l4g.Debug(utils.T("api.cluster.init.debug")) - BaseRoutes.Cluster.Handle("/status", ApiSessionRequired(getClusterStatus)).Methods("GET") + api.BaseRoutes.Cluster.Handle("/status", api.ApiSessionRequired(getClusterStatus)).Methods("GET") } func getClusterStatus(c *Context, w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3-1-g7c22