code: func (p *Plugin) RegisterHTTPHandler(path string, provider HandlerProvider, methods ...string) *mux.Route {
  	p.Log.Debugf("Registering handler: %s", path)
  
  	if p.Config.EnableTokenAuth {
  		return p.mx.Handle(path, p.auth.Validate(provider(p.formatter))).Methods(methods...)
  	}
  	return p.mx.Handle(path, provider(p.formatter)).Methods(methods...)
  }
docs: // RegisterHTTPHandler registers HTTP <handler> at the given <path>. Every request is validated if enabled.