summaryrefslogtreecommitdiffstats
path: root/api4/ldap.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-09-22 12:54:27 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-09-22 13:54:27 -0400
commitdcf9e96a0b16530549168a7891ed8242663b5f28 (patch)
tree344255f0abbe1bd207e2f2ab864d245e240f4eeb /api4/ldap.go
parente0d5703f721aafef1b55747cd09629860e86bfb4 (diff)
downloadchat-dcf9e96a0b16530549168a7891ed8242663b5f28.tar.gz
chat-dcf9e96a0b16530549168a7891ed8242663b5f28.tar.bz2
chat-dcf9e96a0b16530549168a7891ed8242663b5f28.zip
remove global refs from api/api4 (#7496)
Diffstat (limited to 'api4/ldap.go')
-rw-r--r--api4/ldap.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api4/ldap.go b/api4/ldap.go
index 6ed581783..3c5eb5ede 100644
--- a/api4/ldap.go
+++ b/api4/ldap.go
@@ -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) {