<?php

namespace App\Http\Controllers\ServiceTypes;

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

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

}