new changes

This commit is contained in:
Niranjan
2026-04-07 20:29:49 +05:30
parent 8fe63c7cf4
commit 31fe556bb0
79 changed files with 2917 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
$path = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH) ?: '/';
header('Content-Type: application/json');
if ($path === '/health') {
echo json_encode([
'status' => 'ok',
'service' => 'yakpanel-api',
'mode' => 'scaffold',
'time' => gmdate(DATE_ATOM),
], JSON_PRETTY_PRINT);
exit;
}
echo json_encode([
'status' => 'ok',
'service' => 'yakpanel-api',
'message' => 'YakPanel control-plane scaffold is running',
'path' => $path,
], JSON_PRETTY_PRINT);