code: func registerHandlers() {
  	disabled := make(map[string]bool)
  	if conf.Disable != "" {
  		for _, endpoint := range strings.Split(conf.Disable, ",") {
  			disabled[endpoint] = true
  		}
  	}
  
  	for path, getHandler := range endpoints {
  		log.Debugf("getHandler for %s", path)
  
  		if _, ok := disabled[path]; ok {
  			log.Infof("endpoint '%s' is explicitly disabled", path)
  		} else if handler, err := getHandler(); err != nil {
  			log.Warningf("endpoint '%s' is disabled: %v", path, err)
  		} else {
  			if path, handler, err = wrapHandler(path, handler, err); err != nil {
  				log.Warningf("endpoint '%s' is disabled by wrapper: %v", path, err)
  			} else {
  				log.Infof("endpoint '%s' is enabled", path)
  				http.Handle(path, handler)
  			}
  		}
  	}
  	log.Info("Handler set up complete.")
  }
docs: // registerHandlers instantiates various handlers and associate them to corresponding endpoints.