<?php

namespace App\Http\Controllers\Orders;

use App\Classes\Modules\Orders\ControllersLogic\ShippingCostLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class ShippingCostController
{
    /**
     * @param Request $request
     * @param ShippingCostLogic $logic
     * @return JsonResponse
     */
    public function calculate(Request $request, ShippingCostLogic $logic): JsonResponse
    {
        return $logic->execute($request);
    }
}
