Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
App support for Rest and GraphQL
givanz45d59e9b9c7c
diff --git a/index.php b/index.phpindex 50fb7ec..04b0f0e 100755--- a/index.php+++ b/index.php@@ -43,7 +43,18 @@ $installPathRedirect = (V_SUBDIR_INSTALL ? V_SUBDIR_INSTALL : '') . '/install/inif (! defined('APP')) {if (is_installed()) {- define('APP', 'app');+ $app = 'app';+ $url = $_SERVER['REQUEST_URI'] ?? '';++ if (REST && substr_compare($url, '/rest',0 ,5) === 0) {+ $app = 'rest';+ } else {+ if (GRAPHQL && substr_compare($url, '/graphql', 0, 8) === 0) {+ $app = 'graphql';+ }+ }++ define('APP', $app);} else {define('APP', 'install');