import { Router } from 'express';
import protectUser from '../middlewares/protectUser';
import {
  getMyNotifications,
  markNotificationRead,
  markAllNotificationsRead,
} from '../controllers/notificationController';

const router = Router();

router.get('/', protectUser, getMyNotifications);
router.patch('/read-all', protectUser, markAllNotificationsRead);
router.patch('/:id/read', protectUser, markNotificationRead);

export default router;
