<?php

namespace App\Http\Controllers\Segments;

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

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

}