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;

	}