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/brand.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/brand.go')
-rw-r--r-- | api4/brand.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api4/brand.go b/api4/brand.go index ef4ea25b5..23bfc557d 100644 --- a/api4/brand.go +++ b/api4/brand.go @@ -12,11 +12,11 @@ import ( "github.com/mattermost/mattermost-server/utils" ) -func InitBrand() { +func (api *API) InitBrand() { l4g.Debug(utils.T("api.brand.init.debug")) - BaseRoutes.Brand.Handle("/image", ApiHandlerTrustRequester(getBrandImage)).Methods("GET") - BaseRoutes.Brand.Handle("/image", ApiSessionRequired(uploadBrandImage)).Methods("POST") + api.BaseRoutes.Brand.Handle("/image", api.ApiHandlerTrustRequester(getBrandImage)).Methods("GET") + api.BaseRoutes.Brand.Handle("/image", api.ApiSessionRequired(uploadBrandImage)).Methods("POST") } func getBrandImage(c *Context, w http.ResponseWriter, r *http.Request) { |