<?php

namespace App\Http\Controllers\Announcements;

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

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