<?php

namespace App\Http\Controllers\Segments;

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

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

}