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