Files
presensi/app/Modules/Dashboard/Controllers/HealthController.php
2026-03-05 14:37:36 +07:00

34 lines
618 B
PHP

<?php
namespace App\Modules\Dashboard\Controllers;
use App\Core\BaseApiController;
/**
* Health Controller
*
* Provides health check endpoint for API monitoring.
*/
class HealthController extends BaseApiController
{
/**
* Health check endpoint
*
* Returns API status and service information.
*
* @return ResponseInterface
*/
public function index()
{
$data = [
'service' => 'SMAN1 Attendance API',
'status' => 'ok',
];
return $this->successResponse(
$data,
'API is running'
);
}
}