<?php

namespace App\Http\Controllers\Addresses;

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

class FetchAddressController
{
    /**
     * @param Request $request
     * @param FetchAddressLogic $logic
     * @return JsonResponse
     */
    public function fetch(Request $request, FetchAddressLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}