new changes
This commit is contained in:
24
panel-api/public/index.php
Normal file
24
panel-api/public/index.php
Normal 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);
|
||||
Reference in New Issue
Block a user