<?php

namespace App\Http\Controllers\Affiliate;

use App\Classes\Modules\Affiliate\ControllersLogic\CreateAffiliateLogic;
use App\Models\Affiliate;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class CreateAffiliateController
{
    /**
     * @param Request $request
     * @param CreateAffiliateLogic $logic
     * @return JsonResponse
     * @throws \Illuminate\Auth\Access\AuthorizationException
     */
    public function create(Request $request, CreateAffiliateLogic $logic): JsonResponse
    {
        return $logic->execute($request);
    }
}

