Refactor API and database interactions: enhance token management, improve entry handling, and add application name retrieval

This commit is contained in:
marc-go committed 2026-10-06 19:23:15 +02:00
1 parent 9316818753
commit 1a2ee0c176
10 files changed
+79 -19

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
<?php
// Load Main Library
require "../api.php";
$api = new gbAPI(false);
// Get App Name
$command = "SELECT name, value FROM settings WHERE name = :name";
$result = $api->dbCommand($command, true, true, [":name" => "application_name"]);
$api->answer(200, [
"application_name" => $result["value"]
]);