remove global refs from api/api4 (#7496)

Этот коммит содержится в:
Chris
2017-09-22 12:54:27 -05:00
коммит произвёл Harrison Healey
родитель e0d5703f72
Коммит dcf9e96a0b
54 изменённых файлов: 740 добавлений и 717 удалений

Просмотреть файл

@@ -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) {