import { Router } from "express";
import { checkAuth } from "../middleware/checkAuth";
import {
  getNotifications,
  readAllNotifications,
  readNotification,
} from "../controllers/notificationController";

const router = Router();

router.get("/", checkAuth, getNotifications);
router.patch("/read-all", checkAuth, readAllNotifications);
router.patch("/:id/read", checkAuth, readNotification);

export default router;
