<?php

namespace App\Http\Controllers\SegmentConstants;

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

class CreateSegmentConstantController
{
    /**
     * @param Request $request
     * @param CreateSegmentConstantLogic $logic
     * @return JsonResponse
     */
    public function create(Request $request, CreateSegmentConstantLogic $logic): JsonResponse {
        return $logic->execute($request);
    }
}