This commit is contained in:
shimon
2025-03-20 18:27:23 +02:00
parent ea02639767
commit 69bdf50c85
+8 -7
View File
@@ -191,14 +191,15 @@ App::init()
->action(function (App $utopia, Request $request, Database $dbForPlatform, Database $dbForProject, Audit $queueForAudits, Document $project, Document $user, ?Document $session, array $servers, string $mode, Document $team, ?Key $apiKey) {
$route = $utopia->getRoute();
var_dump([
'location' => 'api.php',
'projectId' => !empty($project->getId()) ? $project->getId() : 'NA',
'params' => 'Method: ' . $route->getMethod(). ' URL: ' . $route->getPath(),
'_APP_REGION' => System::getEnv('_APP_REGION'),
]);
if ($project->isEmpty()) {
var_dump([
'location' => 'api.php',
'projectId' => !empty($project->getId()) ? $project->getId() : 'NA',
'params' => 'Method: ' . $route->getMethod(). ' URL: ' . $route->getPath(),
'_APP_REGION' => System::getEnv('_APP_REGION'),
]);
throw new Exception(Exception::PROJECT_NOT_FOUND);
}