<?php

namespace App\Http\Controllers\Companies;

use App\Classes\Modules\Companies\ControllersLogic\RemoveCompanyConnectionFromConnectionSegmentLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class RemoveCompanyConnectionFromConnectionSegmentController
{
    /**
     * @param Request $request
     * @param RemoveCompanyConnectionFromConnectionSegmentLogic $logic
     * @return JsonResponse
     */
    public function detach(Request $request, RemoveCompanyConnectionFromConnectionSegmentLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}