<?php

namespace App\Http\Controllers;

use App\Services\System\HomepageService;
use Inertia\Inertia;
use Inertia\Response;

class HomeController extends Controller
{
    public function __construct(
        private readonly HomepageService $homepageService,
    ) {}

    public function index(): Response
    {
        return Inertia::render('Home', $this->homepageService->pageData());
    }
}
