<?php

namespace App\Http\Controllers\Contacts;

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

class CreateContactController
{
    /**
     * @param Request $request
     * @param CreateContactLogic $logic
     * @return JsonResponse
     */
    public function create(Request $request, CreateContactLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}