diff options
author | Chris <ccbrown112@gmail.com> | 2017-09-22 12:54:27 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-09-22 13:54:27 -0400 |
commit | dcf9e96a0b16530549168a7891ed8242663b5f28 (patch) | |
tree | 344255f0abbe1bd207e2f2ab864d245e240f4eeb /api4/cluster.go | |
parent | e0d5703f721aafef1b55747cd09629860e86bfb4 (diff) | |
download | chat-dcf9e96a0b16530549168a7891ed8242663b5f28.tar.gz chat-dcf9e96a0b16530549168a7891ed8242663b5f28.tar.bz2 chat-dcf9e96a0b16530549168a7891ed8242663b5f28.zip |
remove global refs from api/api4 (#7496)
Diffstat (limited to 'api4/cluster.go')
-rw-r--r-- | api4/cluster.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |