<?php

namespace App\Http\Controllers\Announcements;

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

class DeleteAnnouncementController
{
    /**
     * @param Request $request
     * @param DeleteAnnouncementLogic $logic
     * @return JsonResponse
     */
    public function delete(Request $request, DeleteAnnouncementLogic $logic): JsonResponse
    {
        return $logic->execute($request);
    }
}
