<?php

namespace App\Http\Controllers\Segments;

use App\Classes\Modules\Segments\ControllersLogic\FetchSegmentLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class FetchSegmentController
{
    /**
     * @param Request $request
     * @param FetchSegmentLogic $logic
     * @return JsonResponse
     */
    public function fetch(Request $request, FetchSegmentLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}