fixing the rest api class invocation that was previously calling the rest api from...
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 2 Jul 2019 15:59:52 +0000 (11:59 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 2 Jul 2019 15:59:52 +0000 (11:59 -0400)
setup/routes.php

index 7c1ef05..aa22013 100644 (file)
@@ -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();
      }
  );