<?php

namespace App\Http\Controllers\SegmentConstants;

use App\Classes\Modules\SegmentConstants\ControllersLogic\FetchSegmentConstantLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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

}