Enhance API error handling, add lastError tracking, and implement admin home template
This commit is contained in:
1 parent
ce0777bb33
commit
205f2e2f73
9 files changed
+257
-33
No files matched your search
@@ -10,7 +10,8 @@ $api = new gbAPI(false, $internal);
|
||||
|
||||
// Get Template
|
||||
$template = $api->getSetting("template");
|
||||
|
||||
$api->answer(200, [
|
||||
"template_name" => $template
|
||||
]);
|
||||
if ($template !== NULL) {
|
||||
$api->answer(200, [
|
||||
"template_name" => $template
|
||||
]);
|
||||
}
|
||||
Reference in new issue
Block a user