From fae8b6e46502b5e0fe74e17d236b86676ac0006c Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Thu, 7 Mar 2024 18:19:55 +0100 Subject: [PATCH] Remove extra code --- app/controllers/general.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 0295dd0912..e945189b24 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -92,13 +92,6 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo } } - if (array_key_exists('proxy', $project->getAttribute('apis', []))) { - $status = $project->getAttribute('apis', [])['proxy']; - if (!$status) { - throw new AppwriteException(AppwriteException::GENERAL_API_DISABLED); - } - } - // Skip Appwrite Router for ACME challenge. Nessessary for certificate generation $path = ($swooleRequest->server['request_uri'] ?? '/'); if (\str_starts_with($path, '/.well-known/acme-challenge')) {