<?php

namespace App\Http\Controllers\Vouchers;

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

class ValidateVoucherController
{
    /**
     * @param Request $request
     * @param ValidateVoucherLogic $logic
     * @return JsonResponse
     */
    public function validate(Request $request, ValidateVoucherLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}
