<?php

namespace App\Http\Controllers\Contacts;

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

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

}