From 684c21317c0ff0ec96e0d4dacccc63377464e53f Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 12 Jul 2019 12:22:49 -0400 Subject: [PATCH] Routes no longer require a define, being in the same root folder as routes index --- defines.php | 1 - setup/routes.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/defines.php b/defines.php index fd40686..a3b1c5e 100644 --- a/defines.php +++ b/defines.php @@ -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); diff --git a/setup/routes.php b/setup/routes.php index 6d90391..44fd9b7 100644 --- a/setup/routes.php +++ b/setup/routes.php @@ -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 -- 2.17.1