From 06786481f186736f9ec0a8d8fed550dc2af03ab0 Mon Sep 17 00:00:00 2001 From: ideclon Date: Wed, 30 Nov 2022 21:11:13 +0000 Subject: [PATCH] cleanup --- functions/servers/src/index.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/functions/servers/src/index.php b/functions/servers/src/index.php index 4cd7f2c..62d665f 100644 --- a/functions/servers/src/index.php +++ b/functions/servers/src/index.php @@ -4,16 +4,6 @@ require_once 'vendor/autoload.php'; use Appwrite\Client; // You can remove imports of services you don't use -use Appwrite\Services\Account; -// use Appwrite\Services\Avatars; -use Appwrite\Services\Databases; -// use Appwrite\Services\Functions; -// use Appwrite\Services\Health; -// use Appwrite\Services\Locale; -// use Appwrite\Services\Storage; -// use Appwrite\Services\Teams; -use Appwrite\Services\Users; -use Appwrite\Query; // ini_set('display_errors', 1); // ini_set('display_startup_errors', 1); @@ -38,19 +28,6 @@ include 'redirect_code.php'; return function($req, $res) { $client = new Client(); - // You can remove services you don't use - $account = new Account($client); - // $avatars = new Avatars($client); - $database = new Databases($client); - // $functions = new Functions($client); - // $health = new Health($client); - // $locale = new Locale($client); - // $storage = new Storage($client); - // $teams = new Teams($client); - $users = new Users($client); - - $query = new Appwrite\Query; - if(!$req['variables']['APPWRITE_FUNCTION_ENDPOINT'] || !$req['variables']['APPWRITE_FUNCTION_API_KEY']) { echo('Environment variables are not set. Function cannot use Appwrite SDK.'); exit;