diff --git a/app/controllers/general.php b/app/controllers/general.php index 64ea5bfb18..986d482421 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -130,7 +130,7 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw }; } - if ($type === 'function') { + if ($type === 'function' || $type === 'site') { $method = $utopia->getRoute()?->getLabel('sdk', null); if (empty($method)) {