code it los
All checks were successful
Deploy / deploy (push) Successful in 15s

This commit is contained in:
2026-05-15 22:27:49 +02:00
parent 98dd388fda
commit 752d33e38a
13 changed files with 1577 additions and 4 deletions

20
api/index.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
header('Content-Type: application/json; charset=utf-8');
require_once dirname(__DIR__) . '/config/fileload.php';
$action = $_GET['action'] ?? 'bootstrap';
if ($action === 'bootstrap') {
echo json_encode(app_bootstrap_payload(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
exit;
}
http_response_code(404);
echo json_encode([
'error' => 'Unknown action',
'action' => $action,
], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);