<?php

declare(strict_types=1);

namespace App\Http\Controllers\Project;

use App\Http\Controllers\Concerns\AuthorizesProjectAccess;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Report\GrowthReportController;
use App\Models\Project;
use Illuminate\Http\Request;

/**
 * Backward-compatible alias: GET projects/{project}/growth
 * now returns the richer growth history payload.
 */
class ProjectGrowthController extends Controller
{
    use AuthorizesProjectAccess;

    public function __invoke(Request $request, Project $project)
    {
        return app(GrowthReportController::class)->history($request, $project);
    }
}
