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 InitLdap() {
func (api *API) InitLdap() {
l4g.Debug(utils.T("api.ldap.init.debug"))
BaseRoutes.LDAP.Handle("/sync", ApiSessionRequired(syncLdap)).Methods("POST")
BaseRoutes.LDAP.Handle("/test", ApiSessionRequired(testLdap)).Methods("POST")
api.BaseRoutes.LDAP.Handle("/sync", api.ApiSessionRequired(syncLdap)).Methods("POST")
api.BaseRoutes.LDAP.Handle("/test", api.ApiSessionRequired(testLdap)).Methods("POST")
}
func syncLdap(c *Context, w http.ResponseWriter, r *http.Request) {