<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\ApiLog;
use Illuminate\Http\JsonResponse;

class ApiLogController extends Controller
{
    public function __invoke(): JsonResponse
    {
        return response()->json([
            'data' => ApiLog::query()->latest('created_at')->limit(200)->get(),
        ]);
    }
}
