Fix API returning html

This commit is contained in:
Matej Bačo 2023-09-06 09:34:02 +02:00
parent cda58d2256
commit cafe792879

View file

@ -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);