<?php

namespace App\Http\Controllers\Segments;

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

class DeleteSegmentController
{
    /**
     * @param Request $request
     * @param DeleteSegmentLogic $logic
     * @return JsonResponse
     */
    public function destroy(Request $request, DeleteSegmentLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}