import { Router } from 'express';
import { authenticate } from '../../shared/middleware/auth';
import { notificationsController } from './notifications.controller';

const router = Router();

router.use(authenticate);

router.get('/my', notificationsController.listMyNotifications);
router.get('/unread-count', notificationsController.getUnreadCount);
router.patch('/:id/read', notificationsController.markAsRead);
router.patch('/read-all', notificationsController.markAllAsRead);

export default router;