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/brand.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api4/brand.go') 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) { -- cgit v1.2.3-1-g7c22