From 65553f236bad6b2f431d18e4d65c720e262991f1 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 2 Jul 2019 11:59:52 -0400 Subject: [PATCH] fixing the rest api class invocation that was previously calling the rest api from the main plugin --- setup/routes.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); } ); -- 2.17.1