<?php

namespace App\Http\Controllers\Addresses;

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

class DeleteAddressController
{
    /**
     * @param Request $request
     * @param DeleteAddressLogic $logic
     * @return JsonResponse
     */
    public function destroy(Request $request, DeleteAddressLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}