<?php

namespace App\Http\Controllers\ServiceTypes;

use App\Classes\Modules\ServiceTypes\ControllersLogic\FetchServiceTypeLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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

}