recreate project

This commit is contained in:
root
2026-02-10 22:11:06 -05:00
commit 663c0cdbda
10149 changed files with 1379710 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Api extends BaseConfig
{
public string $baseURL;
public int $timeout;
public array $defaultHeaders;
public function __construct()
{
parent::__construct();
$this->baseURL = rtrim((string) env('API_BASE_URL', ''), '/');
$this->timeout = (int) env('API_TIMEOUT', 10);
$this->defaultHeaders = [
'Accept' => 'application/json',
];
$token = env('API_BEARER_TOKEN');
if ($token) {
$this->defaultHeaders['Authorization'] = 'Bearer ' . $token;
}
}
}
?>