<?php

namespace App\Http\Controllers\Addresses;

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

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

}