<?php

namespace App\Http\Controllers\Accounts;

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

class UserAuthenticationController
{

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

}
