init backend presensi
This commit is contained in:
33
app/Modules/Dashboard/Controllers/HealthController.php
Normal file
33
app/Modules/Dashboard/Controllers/HealthController.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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'
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user