<?php

namespace App\Http\Controllers\Notifications;

use App\Classes\Modules\Notifications\ControllersLogic\ListNotificationsLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

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