<?php

namespace App\Http\Controllers\Announcements;

use App\Classes\Modules\Announcements\ControllersLogic\UpdateAnnouncementLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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