<?php


namespace App\Http\Controllers\Transactions;

use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use App\Classes\Modules\Transactions\ControllersLogic\ListGroupsLogic;


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