<?php

namespace App\Http\Controllers\Addresses;

use App\Classes\Modules\Addresses\ControllersLogic\UpdateAddressLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class UpdateAddressController
{
    /**
     * @param Request $request
     * @param UpdateAddressLogic $logic
     * @return JsonResponse
     */
    public function update(Request $request, UpdateAddressLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}