<?php

namespace App\Http\Controllers\Schedules;

use App\Classes\Modules\Schedules\ControllersLogic\FetchScheduleLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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

}
