<?php

namespace App\Http\Controllers\Accounts;

use App\Classes\Modules\Accounts\ControllersLogic\UpdateUserRoleLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class UpdateUserRoleController
{
    /**
     * @param Request $request
     * @param UpdateUserLogic $logic
     * @return JsonResponse
     */
    public function update(Request $request, UpdateUserRoleLogic $logic): JsonResponse {
        return $logic->execute($request);
    }
}