From 5882fda50155c759b2c4bd2064fed5e14030f513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 5 Feb 2025 16:17:03 +0100 Subject: [PATCH] Fix site router --- app/controllers/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {