<?php

declare(strict_types=1);

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Services\ServerHunterService;
use Illuminate\Http\JsonResponse;

class ServerHunterController extends Controller
{
    public function __construct(
        private ServerHunterService $serverHunterService,
    ) {}

    public function feed(): JsonResponse
    {
        return response()->json($this->serverHunterService->buildFeed());
    }
}
