<?php

namespace App\Http\Controllers\Addresses;

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

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

}