diff --git a/app/controllers/api/console.php b/app/controllers/api/console.php index 7e721bb925..060fa10cb5 100644 --- a/app/controllers/api/console.php +++ b/app/controllers/api/console.php @@ -7,7 +7,7 @@ use Utopia\Database\Document; App::init() ->groups(['console']) - ->inject('console') + ->inject('project') ->action(function (Document $project) { if ($project->getId() !== 'console') { throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN); diff --git a/src/Appwrite/Utopia/Response/Model/ConsoleVariables.php b/src/Appwrite/Utopia/Response/Model/ConsoleVariables.php index 98d3409fbf..e52638f82a 100644 --- a/src/Appwrite/Utopia/Response/Model/ConsoleVariables.php +++ b/src/Appwrite/Utopia/Response/Model/ConsoleVariables.php @@ -14,25 +14,25 @@ class ConsoleVariables extends Model 'type' => self::TYPE_STRING, 'description' => 'CNAME target for your Appwrite custom domains.', 'default' => '', - 'example' => '1.3.0', + 'example' => 'appwrite.io', ]) ->addRule('_APP_STORAGE_LIMIT', [ 'type' => self::TYPE_INTEGER, 'description' => 'Maximum file size allowed for file upload in bytes.', 'default' => '', - 'example' => '1.3.0', + 'example' => '30000000', ]) ->addRule('_APP_FUNCTIONS_SIZE_LIMIT', [ 'type' => self::TYPE_INTEGER, 'description' => 'Maximum file size allowed for deployment in bytes.', 'default' => '', - 'example' => '1.3.0', + 'example' => '30000000', ]) ->addRule('_APP_USAGE_STATS', [ 'type' => self::TYPE_STRING, 'description' => 'Defines if usage stats are enabled. This value is set to \'enabled\' by default, to disable the usage stats set the value to \'disabled\'.', 'default' => '', - 'example' => '1.3.0', + 'example' => 'enabled', ]); }