<?php

namespace App\Http\Controllers\Vouchers;

use App\Classes\Modules\Vouchers\ControllersLogic\CreateVoucherLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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

}
