import express from "express";
import {
  deleteNotifications,
  getNotificationCounter,
  getNotifications,
  markAsRead,
  markAsUnRead,
  editConfiguration,
  getConfiguration,
} from "../controllers/notificationController";
import { verifyToken } from "../middlewares/authJwt";

const router = express.Router();

router.use(verifyToken);
router.get("/counter", getNotificationCounter);
router.get("/:page/:size", getNotifications);
router.post("/mark-as-read", markAsRead);
router.post("/mark-as-unread", markAsUnRead);
router.post("/delete", deleteNotifications);
router.route("/configuration").get(getConfiguration).patch(editConfiguration);

export default router;
