From: Anthony Talarico Date: Tue, 2 Jul 2019 15:59:52 +0000 (-0400) Subject: fixing the rest api class invocation that was previously calling the rest api from... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=65553f236bad6b2f431d18e4d65c720e262991f1;p=WP-Plugins%2Fglm-member-db-rest-api.git fixing the rest api class invocation that was previously calling the rest api from the main plugin --- diff --git a/setup/routes.php b/setup/routes.php index 7c1ef05..aa22013 100644 --- a/setup/routes.php +++ b/setup/routes.php @@ -81,7 +81,6 @@ class GLMA_Rest_Api // Get List of Members $members = $memberData->getList( $where, 'member_name'); - return rest_ensure_response( array_values($members ) ); }, ) @@ -147,7 +146,7 @@ class GLMA_Rest_Api add_action( 'rest_api_init', function(){ - $controller = new glmAssoc_Controller_Members( $this->wpdb, $this->config ); + $controller = new GLMA_Rest_Api( $this->wpdb, $this->config ); $controller->register_routes(); } );