<?php

namespace App\Http\Controllers\Companies;

use App\Classes\Modules\Accounts\ControllersLogic\AddNewMemberLogic;
use App\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

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