public function register_routes( $routes ) {

		$route = JP_API_ROUTE;
		$routes[] = array(
			//endpoints
			"/{$route}/tax-query" => array(
				array(
					array( $this, 'tax_query' ),      WP_JSON_Server::READABLE | WP_JSON_Server::ACCEPT_JSON
				),
			),
		);

		return $routes;

	}
public function register_routes( $routes ) {

		$route = JP_API_ROUTE;
		$routes[] = array(
			//endpoints
			"/{$route}/tax-query" => array(
				array(
					array( $this, 'tax_query' ),      WP_JSON_Server::READABLE | WP_JSON_Server::ACCEPT_JSON
				),
			),
		);

		return $routes;

	}
public function register_routes ( $ routes ) { $ route = JP_API_ROUTE ; $ routes [ ] = array ( //endpoints "/{$route}/tax-query" => array ( array ( array ( $ this , 'tax_query' ) , WP_JSON_Server :: READABLE | WP_JSON_Server :: ACCEPT_JSON ) , ) , ) ; return $ routes ; }
Register the post-related routes

@param array $routes Existing routes
@return array Modified routes
Register the post - related routes