<?php

namespace App\Http\Controllers\Account;

use App\Classes\Modules\ControllersLogic\Accounts\CreateAccountInvitationLogic;
use App\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class InviteUserController extends Controller
{
    /**
     * @param Request $request
     * @param CreateAccountInvitationLogic $logic
     * @return JsonResponse
     * @throws \App\Classes\Modules\ControllerLogic\Exceptions\InternalServerErrorException
     */
    public function invite(Request $request, CreateAccountInvitationLogic $logic): JsonResponse {
        return $logic->execute($request);
    }
}
