<?php

namespace App\Http\Controllers\Accounts;

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

class CheckEmailController
{

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

}
