<?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'
        );
    }
}
