<?php

namespace App\Http\Controllers\Addresses;

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

class SetAddressDefaultController
{
    /**
     * @param Request $request
     * @param SetAddressDefaultLogic $logic
     * @return JsonResponse
     */
    public function set(Request $request, SetAddressDefaultLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}