Enhance API error handling and response structure; update app name retrieval method

This commit is contained in:
marc-go committed 2026-10-10 19:23:11 +02:00
1 parent 95f8e22f11
commit eb67458ab1
9 files changed
+38 -9

No files matched your search

+2 -1
View File
@@ -40,7 +40,7 @@ class gbAPI {
"error_text" => "Authentication failed."
];
$this->answer($status, $data);
$this->answer($status, $data, true);
}
}
}
@@ -181,6 +181,7 @@ class gbAPI {
// Check if request is internal or external
if ($this->internal) {
$this->response = $return;
return;
}else{
http_response_code($status);
header("Content-Type: application/json; charset=UTF-8");