<?php

namespace App\Http\Controllers\Segments;

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

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

}