diff options
Diffstat (limited to 'api4/ldap.go')
-rw-r--r-- | api4/ldap.go | 6 |
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) { |