<?php

namespace App\Http\Controllers\Accounts;


use App\Classes\Modules\Accounts\ControllersLogic\FetchUserByEmailLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class FetchUserByEmailController
{

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

}
