<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\TeamMember;
use Illuminate\Http\Request;

class TeamMemberController extends Controller
{
    public function index()
    {
        $team = TeamMember::active()
            ->orderBy('order')
            ->get();

        return response()->json([
            'success' => true,
            'data' => $team
        ]);
    }
}