Routes no longer require a define, being in the same root folder as routes index
authorLaury GvR <laury@gaslightmedia.com>
Fri, 12 Jul 2019 16:22:49 +0000 (12:22 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 12 Jul 2019 16:22:49 +0000 (12:22 -0400)
defines.php
setup/routes.php

index fd40686..a3b1c5e 100644 (file)
@@ -62,7 +62,6 @@ define('GLM_MEMBERS_REST_API_PLUGIN_SETUP_PATH', GLM_MEMBERS_REST_API_PLUGIN_PAT
 define('GLM_MEMBERS_REST_API_PLUGIN_DB_SCRIPTS', GLM_MEMBERS_REST_API_PLUGIN_SETUP_PATH.'/databaseScripts');
 define('GLM_MEMBERS_REST_API_PLUGIN_CLASS_PATH', GLM_MEMBERS_REST_API_PLUGIN_PATH.'/classes');
 define('GLM_MEMBERS_REST_API_PLUGIN_CONFIG_PATH', GLM_MEMBERS_REST_API_PLUGIN_PATH.'/config');
-define('GLM_MEMBERS_REST_API_PLUGIN_ROUTES_PATH', GLM_MEMBERS_REST_API_PLUGIN_PATH.'/setup/routes');
 
 // Parameters related to the Main GLM Member DB plugin - Depending on what's going on these may already defined by the main plugin
 $pluginsPath = str_replace(GLM_MEMBERS_REST_API_PLUGIN_SLUG, '', GLM_MEMBERS_REST_API_PLUGIN_PATH);
index 6d90391..44fd9b7 100644 (file)
@@ -21,5 +21,5 @@ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php';
 /**
  * Require the routes
  */
-require_once GLM_MEMBERS_REST_API_PLUGIN_ROUTES_PATH.'/dashboard.php';
-require_once GLM_MEMBERS_REST_API_PLUGIN_ROUTES_PATH.'/members.php';
\ No newline at end of file
+require_once 'routes/dashboard.php';
+require_once 'routes/members.php';
\ No newline at end of file