<?php

namespace App\Http\Controllers\Announcements;

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

class CreateAnnouncementController
{
    /**
     * @param Request $request
     * @param CreateAnnouncementLogic $logic
     * @return JsonResponse
     */
    public function create(Request $request, CreateAnnouncementLogic $logic): JsonResponse
    {
        return $logic->execute($request);
    }
}
