<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\ServerLog;
use Inertia\Inertia;
use Inertia\Response;

class ServerLogController extends Controller
{
    public function index(): Response
    {
        return Inertia::render('Admin/Logs/Server', [
            'logs' => ServerLog::query()->latest('created_at')->paginate(50),
        ]);
    }
}
