src/includes/spy-rest-server.php
public function register_route( $namespace, $route, $route_args, $override = false ) {
		parent::register_route( $namespace, $route, $route_args, $override || $this->override_by_default );
	}
public function register_route( $namespace, $route, $route_args, $override = false ) {
		parent::register_route( $namespace, $route, $route_args, $override || $this->override_by_default );
	}
public function register_route ( $ namespace , $ route , $ route_args , $ override = false ) { parent :: register_route ( $ namespace , $ route , $ route_args , $ override || $ this -> override_by_default ) ; }
Override the register_route method so we can re-register routes internally if needed.

@param string $namespace  Namespace.
@param string $route      The REST route.
@param array  $route_args Route arguments.
@param bool   $override   Optional. Whether the route should be overridden if it already exists.
Default false. Also set $GLOBALS['wp_rest_server']->override_by_default = true
to set overrides when you don't have access to the caller context.
Override the register_route method so we can re - register routes internally if needed .