Refactor API and database interactions: enhance token management, improve entry handling, and add application name retrieval
This commit is contained in:
1 parent
9316818753
commit
1a2ee0c176
10 files changed
+79
-19
No files matched your search
@@ -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"]
|
||||
]);
|
||||
Reference in new issue
Block a user