diff --git a/config/app.php.txt b/config/app.php.txt index 73a60bc..9f189c4 100644 --- a/config/app.php.txt +++ b/config/app.php.txt @@ -15,6 +15,17 @@ error_reporting(E_ALL); */ define('APPLICATION_NAME', 'My YGGo host'); +/* + * Application mode + * + * FEDERATIVE - crawl and share distributed index from other YGGo nodes running on same API version + * LOCAL - encapsulated web search portal + * + * see also: API_ENABLED, API_MANIFEST_ENABLED settings + * + */ +define('APPLICATION_MODE', 'FEDERATIVE'); + // Website /* diff --git a/public/api.php b/public/api.php index 5a10776..a40b89f 100644 --- a/public/api.php +++ b/public/api.php @@ -100,8 +100,8 @@ if (API_ENABLED) { 'status' => true, 'result' => [ 'applicationName' => APPLICATION_NAME, - - 'websiteDomain' => WEBSITE_DOMAIN, + 'applicationMode' => APPLICATION_MODE, + 'applicationUrl' => WEBSITE_DOMAIN, 'crawlUrlRegexp' => CRAWL_URL_REGEXP,