<?php

namespace App\Http\Controllers\Announcements;

use App\Classes\Modules\Announcements\ControllersLogic\RemoveSegmentFromAnnouncementLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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

}