<?php

namespace App\Http\Controllers\Addresses;

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

class CreateAddressController
{
    /**
     * @param Request $request
     * @param CreateAddressLogic $logic
     * @return JsonResponse
     */
    public function create(Request $request, CreateAddressLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}