<?php

namespace App\Http\Controllers\Contacts;

use App\Classes\Modules\Contacts\ControllersLogic\FetchContactLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class FetchContactController
{
    /**
     * @param Request $request
     * @param FetchContactLogic $logic
     * @return JsonResponse
     */
    public function fetch(Request $request, FetchContactLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}