<?php

namespace DMD\LaLigaApi\Controller;

use DMD\LaLigaApi\Service\User\Handlers\getNotifications\HandleGetNotifications;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

class NotificationController extends AbstractController
{
    #[Route('/api/notifications', name: 'app_get_notifications')]
    public function getAllNotifications(HandleGetNotifications $handleGetNotifications): Response
    {
        return $handleGetNotifications();
    }
}
