diff --git a/app/controllers/general.php b/app/controllers/general.php index 01f88b7b67..5c1a23d4a9 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -158,6 +158,7 @@ function router(App $utopia, Database $dbForConsole, SwooleRequest $swooleReques return true; } elseif ($type === 'api') { + $utopia->getRoute()?->label('error', ''); return false; } else { throw new AppwriteException(AppwriteException::GENERAL_SERVER_ERROR, 'Unknown resource type ' . $type);