<?php

namespace App\Http\Controllers\StandardSegments;

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

class ListStandardSegmentsController
{
    /**
     * @param Request $request
     * @param ListSegmentLogic $logic
     * @return JsonResponse
     */
    public function list(Request $request, ListSegmentLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}