code: public function hasEndpoint($method, $endpointName)
      {
          $methodName = $this->parseEndpointName($method, $endpointName);
          return $this->reflection->hasMethod($methodName);
      }
docs: Check for a particular endpoint.
  
  Takes the request method (http verb) and endpoint name and checks for a
  matching class method.
  
  @param $method
  @param $endpointName
  @return bool