Add SportPath auth APIs and training content foundation

This commit is contained in:
Hamza-Ayed
2026-10-04 00:49:48 +03:00
parent e7f3c777d1
commit 5b90da6b18
23 changed files with 1451 additions and 238 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
require_once __DIR__ . '/_bootstrap.php';
api_method('GET');
try {
AppConfig::loadEnvironment();
Database::getInstance()->getConnection()->query('SELECT 1');
api_json(['status' => 'ok', 'database' => 'ok']);
} catch (Throwable $exception) {
error_log('Health check dependency unavailable: ' . $exception->getMessage());
api_json(['status' => 'unavailable'], 503);
}