<?php

namespace App\Http\Controllers\Addresses;

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

class ListAddressesController
{
    /**
     * @param Request $request
     * @param ListAddressesLogic $logic
     * @return JsonResponse
     */
    public function list(Request $request, ListAddressesLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}