main

mattermost/focalboard

Last updated at: 29/12/2023 09:49

initHandlers.go

TLDR

This file is part of the Demo Projects project and contains the initHandlers method in the server package. It initializes the handlers for the server's API.

Methods

initHandlers

This method is called to initialize the handlers for the server's API. It retrieves the server's configuration and sets the MattermostAuth property of the API based on the authentication mode specified in the configuration.

package server

func (s *Server) initHandlers() {
	cfg := s.config
	s.api.MattermostAuth = cfg.AuthMode == MattermostAuthMod
}